Overview
Comment: | Ne pas accepter l'absence de l'entête |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
f95890dd0fb8f4bf6fa81c433443abd1 |
User & Date: | bohwaz on 2014-03-13 13:20:05 |
Other Links: | manifest | tags |
Context
2014-03-13
| ||
15:34 | Ajout/liste des rappels automatiques check-in: 210c37153e user: bohwaz tags: trunk | |
13:20 | Ne pas accepter l'absence de l'entête check-in: f95890dd0f user: bohwaz tags: trunk | |
2014-02-20
| ||
20:14 | objets rappels check-in: 900b4185b0 user: bohwaz tags: trunk | |
Changes
Modified src/include/class.compta_import.php from [5ad7f456eb] to [1091812b42].
︙ | ︙ | |||
108 109 110 111 112 113 114 | $line++; if (empty($row)) { continue; } | > > | > > > | < | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | $line++; if (empty($row)) { continue; } if ($line === 1) { if (trim($row[0]) != 'Numéro mouvement') { throw new UserException('Erreur sur la ligne ' . $line . ' : l\'entête des colonnes est absent ou incorrect.'); } continue; } if (count($row) != count($columns)) { $db->exec('ROLLBACK;'); throw new UserException('Erreur sur la ligne ' . $line . ' : le nombre de colonnes est incorrect.'); } if (trim($row[0]) !== '' && !is_numeric($row[0])) { $db->exec('ROLLBACK;'); throw new UserException('Erreur sur la ligne ' . $line . ' : la première colonne doit être vide ou contenir le numéro unique d\'opération.'); } $id = $col('Numéro mouvement'); $date = $col('Date'); |
︙ | ︙ |