/**
* abook_database.php
*
- * Copyright (c) 1999-2001 The Squirrelmail Development Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Backend for personal addressbook stored in a database,
* "AddressBook" class instead.
*
* $Id$
+ * @package squirrelmail
*/
-
+
+/** Needs the DB functions */
require_once('DB.php');
-
+
+/**
+ * Undocumented class - stores the addressbook in a sql database
+ * @package squirrelmail
+ */
class abook_database extends addressbook_backend {
var $btype = 'local';
var $bname = 'database';
$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)));
}