From 1fe42e10b7ec02da9a16c478f28e1992e5685f0a Mon Sep 17 00:00:00 2001 From: Martin Jansen Date: Fri, 4 Oct 2002 20:00:51 +0000 Subject: [PATCH] * Nuke warning when $php_errormsg is not set. --- pear/PEAR/Registry.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 780c3b4ddd..efa6eb8271 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -276,7 +276,8 @@ class PEAR_Registry extends PEAR @ini_restore('track_errors'); if (!is_resource($this->lock_fp)) { - return $this->raiseError("could not create lock file: $php_errormsg"); + return $this->raiseError("could not create lock file" . + (isset($php_errormsg) ? ": " . $php_errormsg : "")); } if (!(int)flock($this->lock_fp, $mode)) { switch ($mode) { -- 2.50.1