<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — db_pager.inc bug, sql with no "where" keyword error]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8641</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8641&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in db_pager.inc bug, sql with no "where" keyword error.]]></description>
		<lastBuildDate>Tue, 14 Jan 2020 00:32:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36801#p36801</link>
			<description><![CDATA[<p>The inserted line in the proposed solution is:<br /></p><div class="codebox"><pre><code>$this-&gt;from = $parts[1];</code></pre></div><p>There is no &quot;else&quot; in the current codebase nor thru from FA v2.2.1.<br />It is not there even in @FreeMan&#039;s&nbsp; <a href="https://github.com/wrhidawan78/frontaccounting/blob/master-cp/includes/db_pager.inc">cloned repo</a> as of 4 years ago.</p><p>Wonder which version of FA is being used.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 14 Jan 2020 00:32:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36801#p36801</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36796#p36796</link>
			<description><![CDATA[<p>I will check, but @FreeMan, what is the difference between the current sentence and the fixed one?</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 13 Jan 2020 14:21:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36796#p36796</guid>
		</item>
		<item>
			<title><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36794#p36794</link>
			<description><![CDATA[<p>@joe: is this necessary?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 13 Jan 2020 09:06:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36794#p36794</guid>
		</item>
		<item>
			<title><![CDATA[db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36784#p36784</link>
			<description><![CDATA[<p>File: <strong>includes/db_pager.inc</strong></p><p>// parse the query<br /></p><div class="codebox"><pre><code>                $parts = preg_split(&#039;/\sFROM\s/si&#039;, $sql, 2);
                    if (count($parts) == 2) {
                        $this-&gt;select = $parts[0];
                        $sql = $parts[1];
                    } else {
                        if ($SysPrefs-&gt;go_debug)
                            display_error(&quot;Invalid sql input for db_pager&quot;);
                    }</code></pre></div><p>// fixed<br /></p><div class="codebox"><pre><code>                               $parts = preg_split(&#039;/\sFROM\s/si&#039;, $sql, 2);
                    if (count($parts) == 2) {
                        $this-&gt;select = $parts[0];
                        $this-&gt;from = $parts[1];
                        $sql = $parts[1];
                        
                    } else {
                        if ($SysPrefs-&gt;go_debug)
                            display_error(&quot;Invalid sql input for db_pager&quot;);
                    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (FreeMan)]]></author>
			<pubDate>Sun, 12 Jan 2020 04:28:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36784#p36784</guid>
		</item>
	</channel>
</rss>
