bug 1138: Properly check for empty string
authorMichael Tänzer <neo@nhng.de>
Mon, 24 Mar 2014 16:27:23 +0000 (17:27 +0100)
committerMichael Tänzer <neo@nhng.de>
Mon, 24 Mar 2014 16:27:23 +0000 (17:27 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/account.php

index 2747f3b..cb5ca9a 100644 (file)
@@ -3069,7 +3069,7 @@ function buildSubjectFromSession() {
 
        if($id == 50)
        {
-               if(array_key_exists('userid',$_REQUEST) && intval($_REQUEST['userid']) != "")
+               if(array_key_exists('userid',$_REQUEST) && $_REQUEST['userid'] !== "")
                        $_REQUEST['userid'] = intval($_REQUEST['userid']);
 
                $row = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($_REQUEST['userid'])."'"));