-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 3.1.0-RC2
-
Fix Version/s: 3.1.0-RC3
-
Component/s: Extensions
-
Labels:None
-
GitHub Pull Request URL:
My extension adds a moderator log entry when a moderator makes a change. Since my extension does not rely on a forum_id or topic_id, an error is thrown for undefined indexes (see screenshot). Here's the relevant section:
$forum_id = (int) $additional_data['forum_id'];
unset($additional_data['forum_id']);
$topic_id = (int) $additional_data['topic_id'];
unset($additional_data['topic_id']);
We should probably check if these are set using isset() and then setting them to 0 if not.