Skip to content

Commit

Permalink
Merge pull request joomla#3166 from gwsdesk/patch-1
Browse files Browse the repository at this point in the history
Update editor.php
  • Loading branch information
infograf768 committed Mar 3, 2014
2 parents f69bb00 + ebd7108 commit d24d32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ public function getButtons($editor, $buttons = true)
}

// Try to authenticate
if ($temp = $plugin->onDisplay($editor, $this->asset, $this->author))
if (method_exists($plugin, 'onDisplay') && $temp = $plugin->onDisplay($editor, $this->asset, $this->author))
{
$result[] = $temp;
}
Expand Down

0 comments on commit d24d32f

Please sign in to comment.