Overview
Comment: | Ne pas risquer d'insérer un adhérent avec le numéro zéro |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1e623cb873404a4e22bcaa4cd594d69b |
User & Date: | bohwaz on 2016-06-05 23:01:49 |
Other Links: | manifest | tags |
Context
2016-06-06
| ||
00:16 | Indiquer le chemin vers les données dans le bug report check-in: be1fbc51bc user: bohwaz tags: trunk | |
2016-06-05
| ||
23:01 | Ne pas risquer d'insérer un adhérent avec le numéro zéro check-in: 1e623cb873 user: bohwaz tags: trunk | |
2016-05-31
| ||
08:07 | Mauvais chemin de script check-in: 93dd6b27a1 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Membres/Import.php from [f05afd4a3d] to [59b1bc5be2].
︙ | ︙ | |||
215 216 217 218 219 220 221 | if (!in_array($name, $champs)) continue; if (trim($row[$id]) !== '') $data[$name] = $row[$id]; } | | < | > > | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | if (!in_array($name, $champs)) continue; if (trim($row[$id]) !== '') $data[$name] = $row[$id]; } if (!empty($data['id']) && $data['id'] > 0) { $id = (int)$data['id']; } else { $id = false; } unset($data['id']); try { if ($id) $membres->edit($id, $data); else $membres->add($data); } catch (UserException $e) |
︙ | ︙ |