Changeset 38066281 in github


Ignore:
Timestamp:
Sep 4, 2009 1:25:57 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
d9b9369
Parents:
b24f2c4
Message:
  • make sure 'required_fields' is an array (#1485892)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.php

    rb24f2c4 r38066281  
    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.