- handle situation when 2nd argument of exec_hook() isn't an array (#1486364)

release-0.6
alecpl 15 years ago
parent 9898fe315a
commit 463a031122

@ -181,6 +181,9 @@ class rcube_plugin_api
*/
public function exec_hook($hook, $args = array())
{
if (!is_array($args))
$args = array('arg' => $args);
$args += array('abort' => false);
$this->active_hook = $hook;

Loading…
Cancel
Save