bug 1208: Better show where $name is used
authorBenny Baumann <BenBE@geshi.org>
Mon, 9 Sep 2013 00:24:29 +0000 (02:24 +0200)
committerBenny Baumann <BenBE@geshi.org>
Mon, 9 Sep 2013 00:24:29 +0000 (02:24 +0200)
pages/wot/6.php

index 52bc7e7..bd26557 100644 (file)
@@ -52,7 +52,6 @@
        $lname = $row['lname'];
        $suffix = $row['suffix'];
        $dob = $row['dob'];
        $lname = $row['lname'];
        $suffix = $row['suffix'];
        $dob = $row['dob'];
-       $name = $fname." ".$mname." ".$lname." ".$suffix; //needed?
 
        $dob_date = explode( '-', $dob);
        $dob_print = sprintf(
 
        $dob_date = explode( '-', $dob);
        $dob_print = sprintf(
@@ -60,6 +59,8 @@
                $dob_date[0], $dob_date[1], $dob_date[2],
                intval($dob_date[2], 10), $mnames[$dob_date[1]], intval($dob_date[0], 10)
                );
                $dob_date[0], $dob_date[1], $dob_date[2],
                intval($dob_date[2], 10), $mnames[$dob_date[1]], intval($dob_date[0], 10)
                );
+
+       $name = $fname." ".$mname." ".$lname." ".$suffix;
        $_SESSION['_config']['wothash'] = md5($name."-".$dob);
 
        require_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
        $_SESSION['_config']['wothash'] = md5($name."-".$dob);
 
        require_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");