Inconsistency between echo and print() fixed to OUTPUT_HTML() (not all)
[mailer.git] / inc / libs / yoomedia_functions.php
index 1e218be4c858e6a188280b62f87353adc73d3475..4ed0f57bbd2df9291e94156ebce33c2ba97c2452 100644 (file)
@@ -304,10 +304,10 @@ function yoomediaTranslateError ($errorCode) {
                $return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
        } else {
                // Log missing entries
-               print '<pre>';
+               DEBUG_LOG(__FUNCTION__, __LINE__, "errorCode={$errorCode}");
+               print('<pre>');
                debug_print_backtrace();
                die('</pre>');
-               DEBUG_LOG(__FUNCTION__, __LINE__, "errorCode={$errorCode}");
        }
 
        // Return value
@@ -321,7 +321,7 @@ function YOOMEDIA_CHECK_RELOAD ($id, $reload, $type) {
 
        // Query database
        $result = SQL_QUERY_ESC("SELECT `id`, UNIX_TIMESTAMP(`inserted`) AS inserted FROM `{!_MYSQL_PREFIX!}_yoomedia_reload` WHERE `type`='%s' AND `y_id`=%s LIMIT 1",
-       array($type, bigintval($id)), __FUNCTION__, __LINE__);
+               array($type, bigintval($id)), __FUNCTION__, __LINE__);
 
        // Entry found?
        if (SQL_NUMROWS($result) == 1) {