fixing wrong is_resource call (introduced by 4a09d9ec22)

This commit is contained in:
Pepijn Over 2014-07-28 11:18:43 +02:00
parent 239ece7848
commit b79fbafe47
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ class StatusUpdater {
$status = ($fp === false) ? false : true;
$this->rtime = (microtime(true) - $starttime);
if(is_resource) {
if(is_resource($fp)) {
fclose($fp);
}
@ -180,7 +180,7 @@ class StatusUpdater {
);
$this->rtime = (microtime(true) - $starttime);
// the first line would be the status code..
$status_code = strtok($curl_result, "\r\n");
// keep it general