Changeset 1710


Ignore:
Timestamp:
Oct 10, 2010, 2:15:04 AM (10 years ago)
Author:
popeye
Message:

Bugfix : enregistrement des infos de profil utilisateur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/doctrine/Citoyen.class.php

    r1668 r1710  
    4545  }
    4646  public function setParametres($array) {
    47     if (!is_array($array))
    48       throw new Exception('Paramtres requires an array');
    49     return $this->_set('parametres', serialize($array));
     47    if (!empty($array) && !is_array($array)) {
     48      throw new Exception('Parametres requires an array');
     49    }
     50    if(is_array($array)) { return $this->_set('parametres', serialize($array)); }
    5051  }
    5152}
Note: See TracChangeset for help on using the changeset viewer.