Overview
Comment:Fix [27ccb4671d] (Impossible de ne rendre aucun champ obligatoire)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f56cf26db4035fd66c25d416214170513512de7f
User & Date: bohwaz on 2012-03-11 23:53:02
Other Links: manifest | tags
Context
2012-03-11
23:58
Fixed [877f4fc1e7] (liste des adhérents avec un nom accentué) check-in: 1484069bbe user: bohwaz tags: trunk
23:53
Fix [27ccb4671d] (Impossible de ne rendre aucun champ obligatoire) check-in: f56cf26db4 user: bohwaz tags: trunk
2012-02-29
21:36
Affichage du numéro d'adhérent dans la liste des adhérents check-in: d37e4a1677 user: bohwaz tags: trunk
Changes

Modified include/class.config.php from [ca19123e8d] to [03055f7739].

122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
        if (!array_key_exists($key, $this->fields_types))
        {
            throw new OutOfBoundsException('Ce champ est inconnu.');
        }

        if (is_array($this->fields_types[$key]))
        {
            $value = (array) $value;
        }
        elseif (is_int($this->fields_types[$key]))
        {
            $value = (int) $value;
        }
        elseif (is_float($this->fields_types[$key]))
        {







|







122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
        if (!array_key_exists($key, $this->fields_types))
        {
            throw new OutOfBoundsException('Ce champ est inconnu.');
        }

        if (is_array($this->fields_types[$key]))
        {
            $value = !empty($value) ? (array) $value : array();
        }
        elseif (is_int($this->fields_types[$key]))
        {
            $value = (int) $value;
        }
        elseif (is_float($this->fields_types[$key]))
        {