From: Roland Häder Date: Thu, 29 Oct 2009 16:24:37 +0000 (+0000) Subject: Fixed issues with themes X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=2d54220e76ce2b27798e402740e32e6021938503 Fixed issues with themes --- diff --git a/inc/modules/guest/action-themes.php b/inc/modules/guest/action-themes.php index 8b95657478..28c5074061 100644 --- a/inc/modules/guest/action-themes.php +++ b/inc/modules/guest/action-themes.php @@ -51,11 +51,11 @@ if ((!isExtensionActive('theme')) && (!isAdmin())) { // Get total num if (isAdmin()) { - // Load only active designs for user - $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true); -} else { // Load all themes for admin $num_themes = countSumTotalData('', 'themes', 'id', '', true); +} else { + // Load only active designs for user + $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true); } $OUT = ''; diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index e377a6b3c1..9aa35d0f2d 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1116,7 +1116,7 @@ function removeReceiver (&$receivers, $key, $userid, $pool_id, $stats_id = '', $ function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatement = 'userid', $countRows = false, $add = '') { $ret = 0; //* DEBUG: */ outputHtml($search.'/'.$tableName.'/'.$lookFor.'/'.$whereStatement.'/'.$add.'
'); - if ((empty($search)) && ($search != 0)) { + if ((empty($search)) && ($search != '0')) { // Count or sum whole table? if ($countRows === true) { // Count whole table