From cf4a3ec98d05cc86e37ef6432cb76233732d1d33 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Wed, 5 Feb 2014 16:51:44 +0100 Subject: [PATCH] Return array on getCustomers when no records found Needs further fix in DB class --- inc/customer.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/customer.class.php b/inc/customer.class.php index f0b011f0..b31074ed 100644 --- a/inc/customer.class.php +++ b/inc/customer.class.php @@ -56,7 +56,7 @@ class SP_Customer { $queryRes = DB::getResults($query, __FUNCTION__, TRUE); if ($queryRes === FALSE) { - return FALSE; + return array(); } if ($retAssocArray) { @@ -277,4 +277,4 @@ class SP_Customer { return $queryRes->uses; } -} \ No newline at end of file +}