alecpl
2009-12-14 463a03112260ecf39818eac09905f41d8e84ced7
- handle situation when 2nd argument of exec_hook() isn't an array (#1486364)


1 files modified
3 ■■■■■ changed files
program/include/rcube_plugin_api.php 3 ●●●●● patch | view | raw | blame | history
program/include/rcube_plugin_api.php
@@ -181,6 +181,9 @@
   */
  public function exec_hook($hook, $args = array())
  {
    if (!is_array($args))
      $args = array('arg' => $args);
    $args += array('abort' => false);
    $this->active_hook = $hook;