X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fyoomedia_functions.php;h=c76bee6f4b541856669bd49dd062be2e98a7a7b5;hb=0d16dc908325fb9078d335e17f4e7c86b54eda7d;hp=d55ba8ddc398ea38bc2781be966af813c0866a0b;hpb=7052cc3bd3ca07281078acbbce6ce595d753def1;p=mailer.git diff --git a/inc/libs/yoomedia_functions.php b/inc/libs/yoomedia_functions.php index d55ba8ddc3..c76bee6f4b 100644 --- a/inc/libs/yoomedia_functions.php +++ b/inc/libs/yoomedia_functions.php @@ -60,7 +60,7 @@ function YOOMEDIA_QUERY_API ($script, $countQuery = TRUE) { ); // Run the query - $response = sendGetRequest('http://www.yoomedia.de/interface_2.0/' . $script, $requestData, TRUE); + $response = sendHttpGetRequest('http://www.yoomedia.de/interface_2.0/' . $script, $requestData, TRUE); // Convert from ISO to UTF-8 only if count is > 3 because <= 3 means timeout if (count($response) > 3) { @@ -157,7 +157,7 @@ function YOOMEDIA_PARSE_RESPONSE ($response, $type) { // Cut off the header $dummy = removeHttpHeaderFromResponse($response); - // If we have no result, abort here + // If there is no result, abort here if (count($dummy) == 0) { // Empty response from API reportBug(__FUNCTION__, __LINE__, 'Empty result from API received. response()=' . count($response) . ',type=' . $type); @@ -325,7 +325,7 @@ function YOOMEDIA_CHECK_RELOAD ($id, $reload, $type) { $reloaded = FALSE; // 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", + $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__); // Entry found?