Overview
Comment:Fix erreur #ryprcty Undefined property: stdClass::$title
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 24b0ea5ff3d37ce7398c2ef2923b223181382e93
User & Date: bohwaz on 2017-10-23 09:17:45
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2017-10-23
09:18
Le compte peut parfois ne pas exister check-in: ecd6f7e5a4 user: bohwaz tags: trunk, stable, 0.8.0
09:17
Fix erreur #ryprcty Undefined property: stdClass::$title check-in: 24b0ea5ff3 user: bohwaz tags: trunk
09:13
Correction utilisation d'objet et pas d'array dans envoi auto de rappel de cotise check-in: f6065709dc 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;
                }
            }