]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/yoomedia_functions.php
Missed to comment out again...
[mailer.git] / inc / libs / yoomedia_functions.php
index ef00bd8e29f0b0e95dd936f6f8cff371a6f7812e..83167b12750858a146374a249d2e7931f47c2be4 100644 (file)
@@ -119,7 +119,7 @@ function YOOMEDIA_TEST_CONFIG ($data) {
        $errorCode = YOOMEDIA_GET_ERRORCODE_FROM_RESULT($response);
 
        // Log the response if failed
-       if (count($response) == '0') {
+       if (count($response) == 0) {
                // Queries depleted (as we count here!)
                logDebugMessage(__FUNCTION__, __LINE__, 'Requested depleted. Maxmimum was: ' . getConfig('yoomedia_requests_total'));
                $errorCode = -1;
@@ -335,7 +335,7 @@ function translateYooMediaError ($errorCode) {
                $return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
        } else {
                // Log missing entries
-               debug_report_bug(sprintf("Unknown error code <strong>%s[%s]</strong> detected.", $errorCode, gettype($errorCode)));
+               debug_report_bug(__FUNCTION__, __LINE__, sprintf("Unknown error code <strong>%s[%s]</strong> detected.", $errorCode, gettype($errorCode)));
        }
 
        // Return value
@@ -434,7 +434,7 @@ function YOOMEDIA_GET_ERRORCODE_FROM_RESULT ($response) {
 
        } else {
                // Should not happen!
-               debug_report_bug('Cannot parse response. Raw response:<pre>' . print_r($response, true) . '</pre>');
+               debug_report_bug(__FUNCTION__, __LINE__, 'Cannot parse response. Raw response:<pre>' . print_r($response, true) . '</pre>');
        }
 
        // Fix empty code to bad