]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Added note for entering alternative prefix
[mailer.git] / inc / mysql-manager.php
index 69b023ff4c58576c78812acc8180bf803588c20f..cc61386194d80fad78eda6723cf3fe92deb1df27 100644 (file)
@@ -160,8 +160,8 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = FALSE) {
        } // END - if
 
        // Is ext-sql_patches installed?
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isExtensionInstalledAndNewer()=' . intval(isExtensionInstalledAndNewer('sql_patches', '0.2.3')) . ',youre_here=' . getConfig('youre_here') . ',isAdmin()=' . intval(isAdmin()) . ',modCheck=' . $modCheck);
-       if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (getConfig('youre_here') == 'Y')) || ((isAdmin()) && ($modCheck == 'admin'))) {
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isExtensionInstalledAndNewer()=' . intval(isExtensionInstalledAndNewer('sql_patches', '0.2.3')) . ',youre_here=' . getYoureHere() . ',isAdmin()=' . intval(isAdmin()) . ',modCheck=' . $modCheck);
+       if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (isYoureHereEnabled())) || ((isAdmin()) && ($modCheck == 'admin'))) {
                // Output HTML code
                $OUT = $prefix . '<strong><a class="you_are_here" href="{%url=modules.php?module=' . $modCheck . '&amp;' . $type . '=' . $search . $linkAdd . '%}">' . getTitleFromMenu($accessLevel, $search, $type, $ADD) . '</a></strong>';
 
@@ -1055,7 +1055,7 @@ function countSumTotalData ($search, $tableName, $lookFor = 'id', $whereStatemen
        if ((empty($data['res'])) && ($lookFor != 'counter') && ($lookFor != 'id') && ($lookFor != 'userid') && ($lookFor != 'rallye_id')) {
                // Float number
                $data['res'] = '0.00000';
-       } elseif (''.$data['res'].'' == '') {
+       } elseif ('' . $data['res'] . '' == '') {
                // Fix empty result
                $data['res'] = '0';
        }
@@ -1773,7 +1773,7 @@ function reduceRecipientReceivedMails ($column, $id, $count) {
                // Now load all userids for one big query!
                $userids = array();
                while ($data = SQL_FETCHARRAY($result)) {
-                       // By default we want to reduce and have no mails found
+                       // By default reduce and found no emails
                        $num = 0;
 
                        // We must now look if he has already confirmed this mail, so might sound double, but it may resolve problems
@@ -2419,10 +2419,11 @@ function doGenericListBuilder ($prefix, $listType, $tableName, $columns, $filter
        }
 
        // Load master template
-       loadTemplate(sprintf("%s_%s_%s",
-               $prefix,
-               $listType,
-               $tableName[0]
+       loadTemplate(
+               sprintf("%s_%s_%s",
+                       $prefix,
+                       $listType,
+                       $tableName[0]
                ), FALSE, $content
        );
 }