<?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 - count(): Parameter must be an array]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7475</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7475&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in db_pager.inc - count(): Parameter must be an array.]]></description>
		<lastBuildDate>Wed, 18 Apr 2018 09:25:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: db_pager.inc - count(): Parameter must be an array]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31451#p31451</link>
			<description><![CDATA[<p>Thanks. Fixed and <a href="https://github.com/FrontAccountingERP/FA/commit/7b76d3bbbde9f30a1659a995d542b7c5a91f9fbf">committed</a> to Repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 18 Apr 2018 09:25:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31451#p31451</guid>
		</item>
		<item>
			<title><![CDATA[db_pager.inc - count(): Parameter must be an array]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31448#p31448</link>
			<description><![CDATA[<p>Hi,</p><p>Using FA 2.4.4 and PHP 7.2.3 (XAMPP 2018-03-14) with debugging on, I am getting the following error message when loading Customer Allocations:</p><p>count(): Parameter must be an array or an object that implements Countable in file: D:\Users\shipl\htdocs\fa24\includes\db_pager.inc at line 293<br />D:\Users\shipl\htdocs\fa24\includes\db_pager.inc:347: &nbsp; &nbsp; (db_pager Object)-&gt;_sql_gen(&#039;1&#039;)<br />D:\Users\shipl\htdocs\fa24\includes\db_pager.inc:180: &nbsp; &nbsp; (db_pager Object)-&gt;_init()<br />D:\Users\shipl\htdocs\fa24\includes\db_pager.inc:392: &nbsp; &nbsp; (db_pager Object)-&gt;query()<br />D:\Users\shipl\htdocs\fa24\includes\ui\db_pager_view.inc:45: &nbsp; &nbsp; (db_pager Object)-&gt;select_records()<br />d:\Users\shipl\htdocs\fa24\sales\allocations\customer_allocation_main.php:113: &nbsp; &nbsp; display_db_pager((db_pager Object))</p><p>Checking the code for db_pager.inc, while $extra_where is defined on line 52, there are several ways it can be used without being initialized. </p><p>I propose changing line 52 from</p><p>&nbsp; &nbsp; var&nbsp; &nbsp; $extra_where;</p><p>to </p><p>&nbsp; &nbsp; var&nbsp; &nbsp; $extra_where = array();</p><p>Hope this helps.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (PaulShipley)]]></author>
			<pubDate>Wed, 18 Apr 2018 01:53:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31448#p31448</guid>
		</item>
	</channel>
</rss>
