summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-07-06 20:35:35 +0200
committerBenny Baumann <BenBE@geshi.org>2013-07-06 20:35:35 +0200
commit6bca5ae9092b109d5a323ef48c5bc203810ccdc3 (patch)
treed5c8de352230cfa32f3a6337ad08a49c764fec6c
parent9a81215af81d5c204b98e4771d116cae66c95bb6 (diff)
downloadcacert-devel-6bca5ae9092b109d5a323ef48c5bc203810ccdc3.tar.gz
cacert-devel-6bca5ae9092b109d5a323ef48c5bc203810ccdc3.tar.xz
cacert-devel-6bca5ae9092b109d5a323ef48c5bc203810ccdc3.zip
bug 1188: Fix check for properly set account user ID
-rw-r--r--includes/general.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php
index bcbe38d..cb9d472 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'])) $query.=", `uid`='".$_SESSION['profile']['id']."'";
+ if(is_array($_SESSION['profile']) && isset($_SESSION['profile']['id'])) $query.=", `uid`='".$_SESSION['profile']['id']."'";
mysql_query($query);
if(substr($line, 0, 3) != "250")