summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/PEAR/Registry.php4
1 files 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)) {