From 1b804cce80a4f4bd00bd93dde6994eea02ec9abb Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Thu, 6 Feb 2014 18:03:56 +0100 Subject: [PATCH] Print 'add' categories/customer Print 'add' categories/customer when no records found --- ajax/ajax_getcontent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ajax/ajax_getcontent.php b/ajax/ajax_getcontent.php index 5ef0a1fe..7df44691 100644 --- a/ajax/ajax_getcontent.php +++ b/ajax/ajax_getcontent.php @@ -242,7 +242,7 @@ switch ($action) { $startTime = microtime(); $categories = SP_Category::getCategories(); - if ($categories) { + if ($categories !== FALSE) { SP_Html::getQueryTable($arrCategoriesTableProp, $categories); SP_Html::printQueryInfoBar(count($categories), $startTime); } @@ -271,7 +271,7 @@ switch ($action) { $startTime = microtime(); $customers = SP_Customer::getCustomers(); - if ($customers) { + if ($customers !== FALSE) { SP_Html::getQueryTable($arrCustomersTableProp, $customers); SP_Html::printQueryInfoBar(count($customers), $startTime); } @@ -385,4 +385,4 @@ if (isset($_SESSION["uisadminapp"]) && SP_Config::getValue('debug')) { // consulta ajax detiene al resto si se ejecuta antes if ($_SESSION['uisadminapp'] && SP_Config::getValue('checkupdates') === 1 && !SP_Common::parseParams('s', 'UPDATED', FALSE, TRUE)) { echo ''; -} \ No newline at end of file +}