summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2000-02-27 14:46:27 +0000
committerStig Bakken <ssb@php.net>2000-02-27 14:46:27 +0000
commit67cc918c3cf3879b7db02aae7cf491db798ba54c (patch)
treec4b26c05ec5ba1c7bbd00d687bb3f38c2c9fbf63
parent48bc90a8aa35cc028e8236bc24c5e07d16662d2f (diff)
downloadphp-git-67cc918c3cf3879b7db02aae7cf491db798ba54c.tar.gz
Avoid E_NOTICE errors in PEAR code.
-rw-r--r--pear/DB.php2
-rw-r--r--pear/HTTP.php2
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 {