Fixes bug #548189. The code was checking for the nickname being set in the
[squirrelmail.git] / src / addressbook.php
index d3d45fba2ae798f2571a5dea2fe1033dcfcd9488..615ba878e66849250465710a62179117be7c4160 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 );
         }