summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-07-06 20:39:31 +0200
committerBenny Baumann <BenBE@geshi.org>2013-07-06 20:39:31 +0200
commitb8b47548585f66cad9ddf486107122f85be3f80a (patch)
treea75b02390847d0654fb5755f44a3a3bcefdbb5f2
parent6bca5ae9092b109d5a323ef48c5bc203810ccdc3 (diff)
downloadcacert-devel-bug-1188.tar.gz
cacert-devel-bug-1188.tar.xz
cacert-devel-bug-1188.zip
bug 1188: Be even more verbose when checking for an account IDbug-1188
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index cb9d472..37bf84b 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -576,7 +576,7 @@
$line = mysql_real_escape_string(trim(strip_tags($line)));
$query = "insert into `pinglog` set `when`=NOW(), `email`='$myemail', `result`='$line'";
- if(is_array($_SESSION['profile']) && isset($_SESSION['profile']['id'])) $query.=", `uid`='".$_SESSION['profile']['id']."'";
+ if(isset($_SESSION['profile']) && is_array($_SESSION['profile']) && isset($_SESSION['profile']['id'])) $query.=", `uid`='".$_SESSION['profile']['id']."'";
mysql_query($query);
if(substr($line, 0, 3) != "250")