Fixes bug #548189. The code was checking for the nickname being set in the
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Jun 2003 03:42:22 +0000 (03:42 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Jun 2003 03:42:22 +0000 (03:42 +0000)
post, but the code didn't mind if nickname wasn't set later.  This caused
the whole add code to be skipped if you missed the nickname.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5122 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addressbook.php

index d3d45fb..615ba87 100644 (file)
@@ -118,7 +118,7 @@ if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P
     /**************************************************
      * Add new address                                *
      **************************************************/
-    if (!empty($addaddr['nickname'])) {
+    if (isset($addaddr)) {
         foreach( $addaddr as $k => $adr ) {
             $addaddr[$k] = strip_tags( $adr );
         }