summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2003-08-02 15:34:19 +0000
committerTomas V.V.Cox <cox@php.net>2003-08-02 15:34:19 +0000
commitede834c8b1e3d20ee6287ec9afa1b9b469638b35 (patch)
treee60f06dde7ae47eb190d75633bfb9ee0a2e3c8fc
parentad9875b877c3899be565a242b06b02742630ba78 (diff)
downloadphp-git-ede834c8b1e3d20ee6287ec9afa1b9b469638b35.tar.gz
fix invalid $fp check (by nicox@php.net)
-rw-r--r--pear/PEAR/Remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/PEAR/Remote.php b/pear/PEAR/Remote.php
index 21399db849..ee892ba22d 100644
--- a/pear/PEAR/Remote.php
+++ b/pear/PEAR/Remote.php
@@ -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);
};