Overview
Comment:Le champ passe disparaissait dans certains cas
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 467a686036c9c6a00f7d729da888ec40731a5e4b
User & Date: bohwaz on 2017-11-01 21:16:28
Other Links: manifest | tags
Context
2017-11-01
21:29
Parfois une page wiki n'a pas de contenu check-in: 91a4284ea1 user: bohwaz tags: trunk, stable
21:16
Le champ passe disparaissait dans certains cas check-in: 467a686036 user: bohwaz tags: trunk, stable
21:03
Correction report à nouveau automatique check-in: fd5dc17ef5 user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Membres/Champs.php from [60668b0d28] to [0bbc3fc421].

89
90
91
92
93
94
95





96
97
98
99
100
101
102
		{
			$this->champs = $champs->getAll();
		}
        elseif (is_array($champs))
        {
            $presets = self::importPresets();
            $this->champs = new \stdClass;






            foreach ($champs as $key=>&$config)
            {
                if (is_array($config))
                {
                    $config = (object) $config;
                }







>
>
>
>
>







89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
		{
			$this->champs = $champs->getAll();
		}
        elseif (is_array($champs))
        {
            $presets = self::importPresets();
            $this->champs = new \stdClass;

            if (!isset($champs['passe']))
            {
                $champs['passe'] = ['type' => 'password'];
            }

            foreach ($champs as $key=>&$config)
            {
                if (is_array($config))
                {
                    $config = (object) $config;
                }