Ignore:
Timestamp:
Dec 14, 2009 3:52:33 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
58fb650
Parents:
9898fe3
Message:
  • handle situation when 2nd argument of exec_hook() isn't an array (#1486364)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_plugin_api.php

    r912bbbc r463a031  
    182182  public function exec_hook($hook, $args = array()) 
    183183  { 
     184    if (!is_array($args)) 
     185      $args = array('arg' => $args); 
     186 
    184187    $args += array('abort' => false); 
    185188    $this->active_hook = $hook; 
Note: See TracChangeset for help on using the changeset viewer.