From 39b2625243496d8efb709b62f6f02c70a28a2783 Mon Sep 17 00:00:00 2001 From: jangliss Date: Thu, 26 Jun 2003 03:42:22 +0000 Subject: [PATCH] Fixes bug #548189. The code was checking for the nickname being set in the 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addressbook.php b/src/addressbook.php index d3d45fba..615ba878 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -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 ); } -- 2.25.1