]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_yoomedia_tm.php
Rewrote some parts:
[mailer.git] / inc / modules / admin / what-list_yoomedia_tm.php
index e72482611b90336c5e075db4e20e407c8621ce25..37f07a08d6ba79a0e4a4a31ccd16547ea53e363d 100644 (file)
@@ -76,7 +76,7 @@ if (getConfig('yoomedia_requests_remain') == '0') {
 $result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
 
 // Sanity-check on result array
-if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
+if ((!isFilledArray($result)) || (!isset($result[0]['id']))) {
        // Invalid result
        displayMessage('{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
        return FALSE;
@@ -85,7 +85,7 @@ if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id'])))
        $code = YOOMEDIA_GET_ERRORCODE_FROM_RESULT($result);
 
        // Output message
-       loadTemplate('admin_yoomedia_error', FALSE, sprintf("{--ADMIN_YOOMEDIA_ERROR_%s--}", strtoupper(translateYooMediaError($code))));
+       loadTemplate('admin_yoomedia_error', FALSE, sprintf('{--ADMIN_YOOMEDIA_ERROR_%s--}', strtoupper(translateYooMediaError($code))));
        return FALSE;
 }