summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-03-24 17:27:23 +0100
committerMichael Tänzer <neo@nhng.de>2014-03-24 17:27:23 +0100
commit94cbe4d978b57354240a511f80d5c5c64e0fcda1 (patch)
treeb4178842a6c282a9d1a79067804efce807fda0f8
parent7e7604335e0dc4b783656f9ae369975b4e3d9c9e (diff)
downloadcacert-devel-94cbe4d978b57354240a511f80d5c5c64e0fcda1.tar.gz
cacert-devel-94cbe4d978b57354240a511f80d5c5c64e0fcda1.tar.xz
cacert-devel-94cbe4d978b57354240a511f80d5c5c64e0fcda1.zip
bug 1138: Properly check for empty string
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/account.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/account.php b/includes/account.php
index 2747f3b..cb5ca9a 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -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'])."'"));