diff options
-rw-r--r-- | pear/DB.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php index 3439b351cc..6781c58242 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -203,11 +203,20 @@ class DB { // "include" should be replaced with "import" once PHP gets it $pkgname = 'DB/' . $type; if (!is_array($USED_PACKAGES) || !$USED_PACKAGES[$pkgname]) { - if (!@include("${pkgname}.php")) { + $file = "${pkgname}.php"; + include($file); +/* + + This suddenly stopped working. I thought include() was supposed to + return a boolean? [ssb 20000218] + + if (!include($file)) { + print "'$file' not found<br>\n"; return DB_ERROR_NOT_FOUND; } else { $USED_PACKAGES[$pkgname] = true; } +*/ } $classname = 'DB_' . $type; $obj = new $classname; |