Print 'add' categories/customer

Print 'add' categories/customer when no records found
This commit is contained in:
nuxsmin
2014-02-06 18:03:56 +01:00
parent 7612ac6504
commit 1b804cce80

View File

@@ -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 '<script>checkUpds();</script>';
}
}