Changeset 2923 in subversion


Ignore:
Timestamp:
Sep 4, 2009 1:25:57 PM (4 years ago)
Author:
alec
Message:
  • make sure 'required_fields' is an array (#1485892)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_ldap.php

    r2921 r2923  
    5757      if (preg_match('/^(.+)_field$/', $prop, $matches)) 
    5858        $this->fieldmap[$matches[1]] = $this->_attr_name(strtolower($value)); 
     59 
     60    // make sure 'required_fields' is an array 
     61    if (!is_array($this->prop['required_fields'])) 
     62      $this->prop['required_fields'] = (array) $this->prop['required_fields']; 
    5963 
    6064    foreach ($this->prop['required_fields'] as $key => $val) 
Note: See TracChangeset for help on using the changeset viewer.