X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=9aa35d0f2d7b07d3d9e39e2b69fda346afd3902b;hb=57816b30385d5b3c3af2e2d8c8c3d353e8a06ce2;hp=abcd20f7e55baeeec9d593f9df47c46634f3ea42;hpb=e2cda4256059886cd7791d2751606856072c7cbc;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index abcd20f7e5..9aa35d0f2d 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -253,7 +253,7 @@ function checkModulePermissions ($mod = '') { // Destroy cache here // @TODO Rewrite this to a filter - if (getOutputMode() == '0') rebuildCacheFile('modules', 'modules'); + if (getOutputMode() == 0) rebuildCacheFile('modules', 'modules'); // And reload data unset($GLOBALS['module_status'][$mod]); @@ -386,7 +386,7 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false, $output = tru //* DEBUG: */ outputHtml(__LINE__.'+'.$type."+
"); // Add closing div and br-tag $OUT .= "
\n"; - $GLOBALS['nav_depth'] = '0'; + $GLOBALS['nav_depth'] = 0; // Run the filter chain $ret = runFilterChain('post_youhere_line', array('access_level' => $accessLevel, 'type' => $type, 'content' => "")); @@ -939,13 +939,6 @@ function sendModeMails ($mod, $modes) { loadTemplate('admin_settings_saved', false, $content); } -// Update module counter -function countModuleHit($mod) { - // Do count all other modules but not accesses on CSS file css.php! - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `clicks`=`clicks`+1 WHERE `module`='%s' LIMIT 1", - array($mod), __FUNCTION__, __LINE__); -} - // Get action value from mode (admin/guest/member) and what-value function getModeAction ($mode, $what) { // Init status @@ -1010,7 +1003,7 @@ function getCategory ($cid) { $ret = getMessage('_CATEGORY_404'); // Is the category id set? - if ($cid == '0') { + if ($cid == 0) { // No category $ret = getMessage('_CATEGORY_NONE'); } elseif ($cid > 0) { @@ -1158,7 +1151,7 @@ function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatemen $ret = '0.00000'; } elseif (''.$ret.'' == '') { // Fix empty result - $ret = '0'; + $ret = 0; } // Return value @@ -1212,13 +1205,13 @@ function getReferalLevelPercents ($level) { * add_mode = Add points only to $userid or also refs? (WARNING! Changing 'ref' to 'direct' * for default value will cause no referal will get points ever!!!) */ -function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $rid = '0', $locked = false, $add_mode = 'ref') { +function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $rid = 0, $locked = false, $add_mode = 'ref') { //* DEBUG: */ outputHtml("----------------------- ".__FUNCTION__." - ENTRY ------------------------