]> git.mxchange.org Git - mailer.git/commitdiff
Some code cosmetics and fixes
authorRoland Häder <roland@mxchange.org>
Fri, 2 Jul 2010 13:19:28 +0000 (13:19 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 2 Jul 2010 13:19:28 +0000 (13:19 +0000)
inc/db/lib-mysql3.php
inc/modules/admin/what-list_notifications.php
inc/template-functions.php

index 13dc80bb446c8136b70a7ebcdb4bfec02e2a4fb0..7f1447e22633207eaea9689732b9a8c8c3d4d198 100644 (file)
@@ -81,7 +81,7 @@ function SQL_QUERY ($sqlString, $F, $L) {
        // Run SQL command
        //* DEBUG: */ debugOutput('F=' . basename($F) . ',L=' . $L . 'sql=' . encodeEntities($GLOBALS['last_sql']));
        $result = mysql_query($GLOBALS['last_sql'], SQL_GET_LINK())
        // Run SQL command
        //* DEBUG: */ debugOutput('F=' . basename($F) . ',L=' . $L . 'sql=' . encodeEntities($GLOBALS['last_sql']));
        $result = mysql_query($GLOBALS['last_sql'], SQL_GET_LINK())
-               or debug_report_bug($F, $L, 'file='. $F . ',line=' . $L . ':mysql_error()=' . mysql_error() . "\n".
+               or debug_report_bug($F, $L, 'file='. basename($F) . ',line=' . $L . ':mysql_error()=' . mysql_error() . "\n".
 'Query string:' . $GLOBALS['last_sql']);
        //* DEBUG: */ logDebugMessage($F, $L, 'sql=' . $GLOBALS['last_sql'] . ',affected=' . SQL_AFFECTEDROWS());
 
 'Query string:' . $GLOBALS['last_sql']);
        //* DEBUG: */ logDebugMessage($F, $L, 'sql=' . $GLOBALS['last_sql'] . ',affected=' . SQL_AFFECTEDROWS());
 
index deb3f600a94f28a2681e240e4a2483aa5a61e3cd..a5283734b975cc2ab929e1d0c863b3787e9ca9b9 100644 (file)
@@ -57,7 +57,7 @@ if (isExtensionActive('bonus')) {
        // Bonus mails sent by you
        $SQL2 = "SELECT
        `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`,
        // Bonus mails sent by you
        $SQL2 = "SELECT
        `id`, `subject`, `text`, `receivers`, `points`, `time`, `data_type`, `timestamp`, `url`, `cat_id`, `target_send`,
-       `mails_sent`, `clicks`, (`mails_sent` - `clicks) AS `unconfirmed`
+       `mails_sent`, `clicks`, (`mails_sent` - `clicks`) AS `unconfirmed`
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
 FROM
        `{?_MYSQL_PREFIX?}_bonus`
 WHERE
@@ -78,7 +78,7 @@ $add = ' LIMIT ' . (bigintval(getRequestParameter('offset')) * bigintval(getRequ
 // Add limitation
 if (!empty($SQL2)) $SQL2 .= $add;
 
 // Add limitation
 if (!empty($SQL2)) $SQL2 .= $add;
 
-if ((isExtensionActive('bonus')) && (!SQL_HASHZERONUMS($result_max)) && (!empty($SQL2))) {
+if ((isExtensionActive('bonus')) && (!SQL_HASZERONUMS($result_max)) && (!empty($SQL2))) {
        // Run SQL query for notification mails
        $result_bonus = SQL_QUERY($SQL2, __FILE__, __LINE__);
 
        // Run SQL query for notification mails
        $result_bonus = SQL_QUERY($SQL2, __FILE__, __LINE__);
 
index 59354c3b2ada5a1ddad7e4c818380884a07a80e4..4f1ad6f8e579e628c059c798fbcd3054698332f3 100644 (file)
@@ -1165,7 +1165,7 @@ function debug_report_bug ($F, $L, $message = '', $sendEmail = true) {
        // Is this already called?
        if (isset($GLOBALS[__FUNCTION__])) {
                // Other backtrace
        // Is this already called?
        if (isset($GLOBALS[__FUNCTION__])) {
                // Other backtrace
-               print 'Message:'.$message.'<br />Backtrace:<pre>';
+               print 'Message:' . $message . '<br />Backtrace:<pre>';
                debug_print_backtrace();
                die('</pre>');
        } // END - if
                debug_print_backtrace();
                die('</pre>');
        } // END - if