Overview
SHA1:24b0ea5ff3d37ce7398c2ef2923b223181382e93
Date: 2017-10-23 09:17:45
User: bohwaz
Comment:Fix erreur #ryprcty Undefined property: stdClass::$title
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-10-23
09:18
[ecd6f7e5a4] Le compte peut parfois ne pas exister (user: bohwaz, tags: trunk, stable, 0.8.0)
09:17
[24b0ea5ff3] Fix erreur #ryprcty Undefined property: stdClass::$title (user: bohwaz, tags: trunk)
09:13
[f6065709dc] Correction utilisation d'objet et pas d'array dans envoi auto de rappel de cotise (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Membres.php from [2b37b883e2] to [b927c6f948].

54
55
56
57
58
59
60

61
62
63
64
65
66
67
68
            }

            if (!isset($data[$key]) || (!is_array($data[$key]) && trim($data[$key]) === '')
                || (is_array($data[$key]) && empty($data[$key])))
            {
                if (!empty($config->mandatory) && ($check_password || $key != 'passe'))
                {

                    throw new UserException('Le champ "' . $config->title . '" doit obligatoirement être renseigné.');
                }
                elseif (!empty($config->mandatory))
                {
                    continue;
                }
            }








>
|







54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
            }

            if (!isset($data[$key]) || (!is_array($data[$key]) && trim($data[$key]) === '')
                || (is_array($data[$key]) && empty($data[$key])))
            {
                if (!empty($config->mandatory) && ($check_password || $key != 'passe'))
                {
                    $name = isset($config->title) ? $config->title : $key;
                    throw new UserException('Le champ "' . $name . '" doit obligatoirement être renseigné.');
                }
                elseif (!empty($config->mandatory))
                {
                    continue;
                }
            }