fixing wrong is_resource call (introduced by 4a09d9ec22)

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