aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorTabitha Backoff <tmbackoff@yahoo.com>2014-08-03 13:06:20 -0400
committerTabitha Backoff <tmbackoff@yahoo.com>2014-08-03 13:28:14 -0400
commitd5db09e88846253accbd64490061b6f9fc73e333 (patch)
tree3b4e607667c5737f67365d9ae96f71491811e9e0 /phpBB/phpbb
parent7beef6e142dc4ec6e29bdedadb3dce6ae107821a (diff)
downloadforums-d5db09e88846253accbd64490061b6f9fc73e333.tar
forums-d5db09e88846253accbd64490061b6f9fc73e333.tar.gz
forums-d5db09e88846253accbd64490061b6f9fc73e333.tar.bz2
forums-d5db09e88846253accbd64490061b6f9fc73e333.tar.xz
forums-d5db09e88846253accbd64490061b6f9fc73e333.zip
[ticket/12912] Undefined index when adding logs from extensions
Add isset() to forum_id and topic_id. PHPBB3-12912
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/log/log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php
index c522c3273f..2af8b50b54 100644
--- a/phpBB/phpbb/log/log.php
+++ b/phpBB/phpbb/log/log.php
@@ -245,9 +245,9 @@ class log implements \phpbb\log\log_interface
break;
case 'mod':
- $forum_id = (int) $additional_data['forum_id'];
+ $forum_id = isset($additional_data['forum_id']) ? (int) $additional_data['forum_id'] : 0;
unset($additional_data['forum_id']);
- $topic_id = (int) $additional_data['topic_id'];
+ $topic_id = isset($additional_data['topic_id']) ? (int) $additional_data['topic_id'] : 0;
unset($additional_data['topic_id']);
$sql_ary += array(
'log_type' => LOG_MOD,