]> granicus.if.org Git - php/commitdiff
The System class was modified to always return true or false instead
authorTomas V.V.Cox <cox@php.net>
Sat, 23 Mar 2002 18:36:52 +0000 (18:36 +0000)
committerTomas V.V.Cox <cox@php.net>
Sat, 23 Mar 2002 18:36:52 +0000 (18:36 +0000)
of PEAR Errors. Changed then assertStateDir() to check for false.

pear/PEAR/Registry.php

index f43a35411e89a01c9b8615145877476159580d67..9167464cf3dcf6b5aae62af5d9901f1f54e41004 100644 (file)
@@ -210,8 +210,8 @@ class PEAR_Registry extends PEAR
             // XXX does not check type of lock (LOCK_SH/LOCK_EX)
             return true;
         }
-        if (PEAR::isError($err = $this->_assertStateDir())) {
-            return $err;
+        if (!@$this->_assertStateDir()) {
+            return $this->raiseError("could not create directory '{$this->statedir}'");
         }
         $this->lock_fp = @fopen($this->lockfile, 'w');
         if (!is_resource($this->lock_fp)) {