From: Stig Bakken Date: Sun, 27 Feb 2000 14:46:27 +0000 (+0000) Subject: Avoid E_NOTICE errors in PEAR code. X-Git-Tag: PHP-4.0-RC1~375 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67cc918c3cf3879b7db02aae7cf491db798ba54c;p=php Avoid E_NOTICE errors in PEAR code. --- diff --git a/pear/DB.php b/pear/DB.php index 6781c58242..dc8853539c 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -22,7 +22,7 @@ // Database independent query interface. // -if ($GLOBALS['USED_PACKAGES']['DB']) return; +if (!empty($GLOBALS['USED_PACKAGES']['DB'])) return; $GLOBALS['USED_PACKAGES']['DB'] = true; // {{{ Database independent error codes. diff --git a/pear/HTTP.php b/pear/HTTP.php index a4480caf5c..9b866dd78e 100644 --- a/pear/HTTP.php +++ b/pear/HTTP.php @@ -22,7 +22,7 @@ // HTTP utility functions. // -if ($GLOBALS['USED_PACKAGES']['HTTP']) return; +if (!empty($GLOBALS['USED_PACKAGES']['HTTP'])) return; $GLOBALS['USED_PACKAGES']['HTTP'] = true; class HTTP {