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 +}