]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/yoomedia_functions.php
More deprecated checking boolean expressions fixed
[mailer.git] / inc / libs / yoomedia_functions.php
index 54bc99017850463c540695991688a20243114f04..04deb26e9d62b6a78f81606d8ecfce8f269bc077 100644 (file)
@@ -38,7 +38,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Test if the extension settings did work
-function YOOMEDIDA_TEST_CONFIG ($data) {
+function YOOMEDIA_TEST_CONFIG ($data) {
        global $_CONFIG;
 
        // Is this admin?
@@ -64,10 +64,10 @@ function YOOMEDIDA_TEST_CONFIG ($data) {
        // Log the response if failed
        if (count($response) == 0) {
                // Queries depleted (as we count here!)
-               DEBUG_LOG(__FUNCTION__."(".__LINE__."): Requested depleted. Maxmimum was: ".$_CONFIG['yoomedia_requests_total']);
+               DEBUG_LOG(__FUNCTION__, __LINE__, " Requested depleted. Maxmimum was: ".$_CONFIG['yoomedia_requests_total']);
        } elseif (count($response) <= 10) {
                // Log serialized raw response
-               DEBUG_LOG(__FUNCTION__."(".__LINE__."): Raw response=".base64_encode(serialize($response)));
+               DEBUG_LOG(__FUNCTION__, __LINE__, " Raw response=".base64_encode(serialize($response)));
        } // END - if
 
        // Do we have some data there?
@@ -248,7 +248,7 @@ function YOOMEDIA_EXCLUDE_MAIL ($data, $mode) {
                $mode = YOOMEDIA_CONVERT_MODE($mode);
 
                // Add the entry
-               $result = SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_yoomedia_reload` (`type`,`y_id`,`y_reload`,`inserted`) VALUES('%s',%s,%s,'0000-00-00 00:00')",
+               $result = SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_yoomedia_reload` (`type`,`y_id`,`y_reload`,`inserted`) VALUES ('%s',%s,%s,'0000-00-00 00:00')",
                        array($mode, bigintval($data['id']), bigintval($data['reload'])), __FILE__, __LINE__);
        } // END - if
 }
@@ -276,7 +276,7 @@ function YOOMEDIA_TRANSLATE_INDEX ($type, $index) {
                $return = $yoomediaTranslationTable[$type][$index];
        } else {
                // Not found!
-               DEBUG_LOG(__FUNCTION__."(".__LINE__."): type={$type},index={$index} not found.");
+               DEBUG_LOG(__FUNCTION__, __LINE__, " type={$type},index={$index} not found.");
        }
 
        // Return value
@@ -296,7 +296,7 @@ function YOOMEDIA_TRANSLATE_ERROR ($errorCode) {
                $return = $yoomediaTranslationTable['error_codes'][$errorCode];
        } else {
                // Log missing entries
-               DEBUG_LOG(__FUNCTION__."(".__LINE__."): errorCode={$errorCode}");
+               DEBUG_LOG(__FUNCTION__, __LINE__, " errorCode={$errorCode}");
        }
 
        // Return value
@@ -343,7 +343,7 @@ function YOOMEDIA_RELOAD_LOCK ($data, $mode) {
                $mode = YOOMEDIA_CONVERT_MODE($mode);
 
                // Add the entry
-               $result = SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_yoomedia_reload` (`type`,`y_id`,`y_reload`) VALUES('%s',%s,%s)",
+               $result = SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_yoomedia_reload` (`type`,`y_id`,`y_reload`) VALUES ('%s',%s,%s)",
                        array($mode, bigintval($data['id']), bigintval($data['reload'])), __FILE__, __LINE__);
        } // END - if
 }