From 67cc918c3cf3879b7db02aae7cf491db798ba54c Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sun, 27 Feb 2000 14:46:27 +0000 Subject: [PATCH] Avoid E_NOTICE errors in PEAR code. --- pear/DB.php | 2 +- pear/HTTP.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.50.1