From 5f3c22a2e6edbeedd735b917dc069008d0aa77a3 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Tue, 9 Jul 2013 23:27:55 +0200 Subject: bug 663: changed Unconditional Variable Assignment instead of if-condition for $showdetails --- pages/account/13.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/account') diff --git a/pages/account/13.php b/pages/account/13.php index 6ba1ff9..0abfd94 100644 --- a/pages/account/13.php +++ b/pages/account/13.php @@ -23,7 +23,7 @@ $year = intval(substr($user['dob'], 0, 4)); $month = intval(substr($user['dob'], 5, 2)); $day = intval(substr($user['dob'], 8, 2)); - $showdetails=0; if(array_key_exists('showdetails',$_REQUEST)) $showdetails=intval($_REQUEST['showdetails']); + $showdetails = array_key_exists('showdetails', $_REQUEST) && !!intval($_REQUEST['showdetails']); if($showdetails == 1){ $body = sprintf(_("Hi %s,"),$user['fname'])."\n\n"; $body .= _("You receive this automatic mail since you yourself or someone ". @@ -118,12 +118,12 @@
- () + () - + -- cgit v1.2.1