<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — db_pager.inc bug, sql with no "where" keyword error]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8641&amp;type=atom" />
	<updated>2020-01-14T00:32:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8641</id>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36801#p36801" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-01-14T00:32:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36801#p36801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36796#p36796" />
			<content type="html"><![CDATA[<p>I will check, but @FreeMan, what is the difference between the current sentence and the fixed one?</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-01-13T14:21:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36796#p36796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36794#p36794" />
			<content type="html"><![CDATA[<p>@joe: is this necessary?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-01-13T09:06:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36794#p36794</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[db_pager.inc bug, sql with no "where" keyword error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36784#p36784" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[FreeMan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45249</uri>
			</author>
			<updated>2020-01-12T04:28:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36784#p36784</id>
		</entry>
</feed>
