bug 569: Fixed multiple title
authorINOPIAE <inopiae@cacert.org>
Tue, 14 May 2013 21:14:24 +0000 (23:14 +0200)
committerINOPIAE <inopiae@cacert.org>
Tue, 14 May 2013 21:14:24 +0000 (23:14 +0200)
includes/account.php

index b90c9d3..a861c52 100644 (file)
                $delcount = 0;
                if(array_key_exists('delid',$_REQUEST) && is_array($_REQUEST['delid']))
                {
+                       $deltitle=0;
                        foreach($_REQUEST['delid'] as $id)
                        {
-                               if (0==$delcount) {
+                               if (0==$deltitle) {
                                        echo _('The following email addresses have been removed:')."<br>\n";
+                                       $deltitle=1;
                                }
                                $id = intval($id);
                                $query = "select * from `email` where `id`='$id' and `memid`='".intval($_SESSION['profile']['id'])."' and