Changeset 1345
- Timestamp:
- Sep 10, 2010, 12:22:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/lib/task/loadAmdmtsTask.class.php
r1151 r1345 25 25 $ct_lines++; 26 26 $json = json_decode($line); 27 if (!$json || !$json->source || !$json->legislature || !$json->numero || !$json->loi || !$json->sujet || !$json->texte || !$json->date || !isset($json->rectif)) { 28 echo "ERROR json : $line\n"; 27 if (!$json) { 28 echo "ERROR json : $line"; 29 continue; 30 } 31 if (!$json->source || !$json->legislature || !$json->numero || !$json->loi || !$json->sujet || !$json->texte || !$json->date || !isset($json->rectif)) { 32 echo "ERROR mandatory arg missing (source|legis|numero|loi|sujet|texte|date|rectif): $line\n"; 29 33 continue; 30 34 }
Note: See TracChangeset
for help on using the changeset viewer.