From b79fbafe4735638bb63f962cd91f5ab52e0fb11b Mon Sep 17 00:00:00 2001 From: Pepijn Over Date: Mon, 28 Jul 2014 11:18:43 +0200 Subject: [PATCH] fixing wrong is_resource call (introduced by 4a09d9ec22fdcc75dcc60b2438fbb820b707e375) --- src/psm/Util/Updater/StatusUpdater.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psm/Util/Updater/StatusUpdater.class.php b/src/psm/Util/Updater/StatusUpdater.class.php index f0686387..1b1fa6ab 100644 --- a/src/psm/Util/Updater/StatusUpdater.class.php +++ b/src/psm/Util/Updater/StatusUpdater.class.php @@ -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