]> granicus.if.org Git - php/commitdiff
fix invalid $fp check (by nicox@php.net)
authorTomas V.V.Cox <cox@php.net>
Sat, 2 Aug 2003 15:34:19 +0000 (15:34 +0000)
committerTomas V.V.Cox <cox@php.net>
Sat, 2 Aug 2003 15:34:19 +0000 (15:34 +0000)
pear/PEAR/Remote.php

index 21399db84935af18e87dce6c6979d16ae75f6749..ee892ba22d099fde7a48243dc57ff272fe93466b 100644 (file)
@@ -91,7 +91,7 @@ class PEAR_Remote extends PEAR
         $filename = $cachedir.'/xmlrpc_cache_'.$id;
 
         $fp = @fopen($filename, "wb");
-        if ($fp !== null) {
+        if (!$fp) {
             fwrite($fp, serialize($data));
             fclose($fp);
         };