Changeset 3591 in subversion


Ignore:
Timestamp:
May 4, 2010 7:16:57 AM (3 years ago)
Author:
alec
Message:
  • Fix PHP Warning when autocomplete_addressbooks is not an array
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/example_addressbook/example_addressbook.php

    r3587 r3591  
    1717    // (maybe this should be configurable by the user?) 
    1818    $config = rcmail::get_instance()->config; 
    19     $sources = $config->get('autocomplete_addressbooks', array('sql')); 
     19    $sources = (array) $config->get('autocomplete_addressbooks', array('sql')); 
    2020    if (!in_array($this->abook_id, $sources)) { 
    2121      $sources[] = $this->abook_id; 
Note: See TracChangeset for help on using the changeset viewer.