Index: pear/PEAR/Remote.php =================================================================== RCS file: /repository/php-src/pear/PEAR/Remote.php,v retrieving revision 1.43 diff -u -r1.43 Remote.php --- pear/PEAR/Remote.php 3 Aug 2003 19:32:07 -0000 1.43 +++ pear/PEAR/Remote.php 4 Aug 2003 09:49:23 -0000 @@ -64,7 +64,7 @@ }; $fp = fopen($filename, 'rb'); - if ($fp === null) { + if (!$fp) { return null; } $content = fread($fp, filesize($filename)); @@ -91,7 +91,7 @@ $filename = $cachedir.'/xmlrpc_cache_'.$id; $fp = @fopen($filename, "wb"); - if (!$fp) { + if ($fp) { fwrite($fp, serialize($data)); fclose($fp); };