X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=c9fad71c38bd45b68868552f4ecc139b956bb10c;hb=3deb4216cd947c4eb14b0a9e3b9f637ca25e77d3;hp=bf3b16b973dd738593a02176c010254269a115e7;hpb=d0c133d3ee415498b9b69237f2806ac15b04ae18;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index bf3b16b973..c9fad71c38 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -296,7 +296,7 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false) { // Init variables $LINK_ADD = ''; $OUT = ''; - $AND = ''; + $ADD = ''; // First we have to do some analysis... if (substr($file, 0, 7) == 'action-') { @@ -308,39 +308,39 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false) { $modCheck = getModuleFromFileName($file, $accessLevel); // Add what - $AND = " AND (`what`='' OR `what` IS NULL)"; + $ADD = " AND (`what`='' OR `what` IS NULL)"; } elseif (substr($file, 0, 5) == 'what-') { - // This is an admin what file! + // This is a 'what file'! $type = 'what'; $search = substr($file, 5); - $AND = " AND `visible`='Y' AND `locked`='N'"; + $ADD = " AND `visible`='Y' AND `locked`='N'"; // Get access level from it $modCheck = getModuleFromFileName($file, $accessLevel); // Do we have admin? Then display all - if (isAdmin()) $AND = ''; + if (isAdmin()) $ADD = ''; $dummy = substr($search, 0, -4); - $AND .= " AND `action`='".getModeAction($accessLevel, $dummy)."'"; + $ADD .= " AND `action`='".getModeAction($accessLevel, $dummy)."'"; } elseif (($accessLevel == 'sponsor') || ($accessLevel == 'engine')) { // Sponsor / engine menu $type = 'what'; $search = $file; $modCheck = getModule(); - $AND = ''; + $ADD = ''; } else { // Other $type = 'menu'; $search = $file; $modCheck = getModule(); - $AND = ''; + $ADD = ''; } // Begin the navigation line if ((!isset($GLOBALS['nav_depth'])) && ($return === false)) { $GLOBALS['nav_depth'] = '0'; - $prefix = "