aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
commit530b7e94c5e10eb1b9aa2ea488825265b685651e (patch)
treee679fd1af844e3b80d36923bde481873aee0e56d /phpBB/includes/functions.php
parent2ddac1037550a12e6a49dd7d78f7884ce584eedc (diff)
downloadforums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.gz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.bz2
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.xz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.zip
- fixing a few smaller bugs/glitches
- init user session in cron.php (else it can produce errors if functions expect the user object being set) - fix sql escaping for mssql/mssql_odbc git-svn-id: file:///svn/phpbb/trunk@5957 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 70e8cb7c6c..604d0d3870 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1961,7 +1961,7 @@ function add_log()
$data = (!sizeof($args)) ? '' : serialize($args);
$sql_ary = array(
- 'user_id' => $user->data['user_id'],
+ 'user_id' => (empty($user->data)) ? ANONYMOUS : $user->data['user_id'],
'log_ip' => $user->ip,
'log_time' => time(),
'log_operation' => $action,