Browse Source

Remove isWarning as it's been dropped from PEAR with cvs versions

simond 23 years ago
parent
commit
566cd026ec
2 changed files with 2 additions and 2 deletions
  1. 1 1
      functions/abook_database.php
  2. 1 1
      functions/db_prefs.php

+ 1 - 1
functions/abook_database.php

@@ -92,7 +92,7 @@ class abook_database extends addressbook_backend {
          
         $dbh = DB::connect($this->dsn, true);
          
-        if (DB::isError($dbh) || DB::isWarning($dbh)) {
+        if (DB::isError($dbh)) {
             return $this->set_error(sprintf(_("Database error: %s"),
                                             DB::errorMessage($dbh)));
         }

+ 1 - 1
functions/db_prefs.php

@@ -108,7 +108,7 @@ class dbPrefs {
         }
         $dbh = DB::connect($prefs_dsn, true);
 
-        if(DB::isError($dbh) || DB::isWarning($dbh)) {
+        if(DB::isError($dbh)) {
             $this->error = DB::errorMessage($dbh);
             return false;
         }