From b217ed97119c493acb76f118864a55d23ee9b3fb Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sat, 23 Mar 2002 18:36:52 +0000 Subject: [PATCH] The System class was modified to always return true or false instead of PEAR Errors. Changed then assertStateDir() to check for false. --- pear/PEAR/Registry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index f43a35411e..9167464cf3 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -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)) { -- 2.50.1