}
// Enougth queries left?
-if (getConfig('yoomedia_requests_remain') == 0) {
+if (getConfig('yoomedia_requests_remain') == '0') {
// Output message
loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_REQUESTS_DEPLETED'));
$result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
// Sanity-check on result array
-if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
+if ((!is_array($result)) || (count($result) == '0') || (!isset($result[0]['id']))) {
// Invalid result
loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_INVALID_RESULT'));
return false;
// Is this mail already sent?
if ($reload !== false) {
// Init countdown
- $countdown = 0;
+ $countdown = '0';
// Not manually locked?
if ($reload > 0) {