Skip to content

Commit

Permalink
change sizeof to isset
Browse files Browse the repository at this point in the history
  • Loading branch information
paul999 committed Sep 20, 2018
1 parent 3f66692 commit 7036a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/main_listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public function handle_post_approval($event)

public function submit_post($event)
{
if ($event['post_visibility'] == ITEM_APPROVED && count($this->mention_data))
if ($event['post_visibility'] == ITEM_APPROVED && isset($this->mention_data))
{
$data = $event['data'];
$data['username'] = $this->user->data['username'];
Expand Down

0 comments on commit 7036a8a

Please sign in to comment.