projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
must have functions/i18n.php available to use $squirrelmail_language further
[squirrelmail.git]
/
functions
/
abook_database.php
diff --git
a/functions/abook_database.php
b/functions/abook_database.php
index bfdadb9d04f415e972e6e7a5a19b281fb592c087..5721d3a81aa65a166fce28ed96f8d9b376e2797a 100644
(file)
--- a/
functions/abook_database.php
+++ b/
functions/abook_database.php
@@
-1,10
+1,10
@@
<?php
<?php
+
/**
* abook_database.php
*
/**
* abook_database.php
*
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @subpackage addressbook
* @version $Id$
* @package squirrelmail
* @subpackage addressbook
@@
-327,9
+327,9
@@
class abook_database extends addressbook_backend {
$this->table, $this->owner,
$this->dbh->quoteString($userdata['nickname']),
$this->dbh->quoteString($userdata['firstname']),
$this->table, $this->owner,
$this->dbh->quoteString($userdata['nickname']),
$this->dbh->quoteString($userdata['firstname']),
- $this->dbh->quoteString(
$userdata['lastname']
),
+ $this->dbh->quoteString(
(!empty($userdata['lastname'])?$userdata['lastname']:'')
),
$this->dbh->quoteString($userdata['email']),
$this->dbh->quoteString($userdata['email']),
- $this->dbh->quoteString(
$userdata['label']
) );
+ $this->dbh->quoteString(
(!empty($userdata['label'])?$userdata['label']:'')
) );
/* Do the insert */
$r = $this->dbh->simpleQuery($query);
/* Do the insert */
$r = $this->dbh->simpleQuery($query);
@@
-407,9
+407,9
@@
class abook_database extends addressbook_backend {
$this->table,
$this->dbh->quoteString($userdata['nickname']),
$this->dbh->quoteString($userdata['firstname']),
$this->table,
$this->dbh->quoteString($userdata['nickname']),
$this->dbh->quoteString($userdata['firstname']),
- $this->dbh->quoteString(
$userdata['lastname']
),
+ $this->dbh->quoteString(
(!empty($userdata['lastname'])?$userdata['lastname']:'')
),
$this->dbh->quoteString($userdata['email']),
$this->dbh->quoteString($userdata['email']),
- $this->dbh->quoteString(
$userdata['label']
),
+ $this->dbh->quoteString(
(!empty($userdata['label'])?$userdata['label']:'')
),
$this->owner,
$this->dbh->quoteString($alias) );
$this->owner,
$this->dbh->quoteString($alias) );
@@
-426,4
+426,4
@@
class abook_database extends addressbook_backend {
} /* End of class abook_database */
// vim: et ts=4
} /* End of class abook_database */
// vim: et ts=4
-?>
\ No newline at end of file
+?>