X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fother_functions.php;h=958d92a882c9d72c326654b4d7eaf0cbda79541a;hb=5736dfb1b51bff78b3594a166f350e76784fa0ff;hp=df627d4505ebfaf48c241ba77c4b6fbe6e61f24d;hpb=cb20090aa0558f1b74f0e9f925f29819e8bb3a45;p=mailer.git diff --git a/inc/libs/other_functions.php b/inc/libs/other_functions.php index df627d4505..958d92a882 100644 --- a/inc/libs/other_functions.php +++ b/inc/libs/other_functions.php @@ -45,21 +45,17 @@ if (!defined('__SECURITY')) { // Displays all SQL queries with num rows, affected rows and timings function displayDebugSqls () { // Walk through all SQLs - $OUT = ''; $SW = 2; $i = 1; + $OUT = ''; $i = 1; foreach ($GLOBALS['debug_sqls'] as $content) { // Translate/add some data - $content['sw'] = $SW; $content['i'] = $i; - $content['num_rows'] = translateComma($content['num_rows']); - $content['affected'] = translateComma($content['affected']); - $content['sql_str'] = secureString($content['sql_str']); $content['timing'] = translateComma($content['timing'] * 1000); // Load row template $OUT .= loadTemplate('admin_other_sqls_row', true, $content); - // Switch color - $SW = 3 - $SW; $i++; + // Count one up + $i++; } // END - foreach // Load main template @@ -69,7 +65,7 @@ function displayDebugSqls () { // Filter for debugging SQLs function FILTER_DISPLAY_DEBUG_SQL () { // Shall we display SQL queries? - if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) { + if ((isAdmin()) && (isDisplayDebugSqlEnabled()) && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) { // Then display it here displayDebugSqls(); } // END - if