Nextrek
Diff Revisions
258
vs
287
for /Android/SmartCharging/endPoints/LocalRepository.php
|
@@ -22,21 +22,21 @@ |
22 |
22 |
|
|
23 |
23 |
|
//echo "<br/>".$query."<br/>"; |
24 |
24 |
|
|
25 |
|
- |
$imgs = $local->imgs; |
26 |
|
- |
$imgsToInsert = array(); |
|
25 |
+ |
/*imgs = $local->imgs; |
|
26 |
+ |
$imgsToInsert = array();*/ |
27 |
27 |
|
|
28 |
28 |
|
try { |
29 |
29 |
|
$this->db->exec($queryLocal); |
30 |
30 |
|
$id_locale = $this->db->lastInsertId(); |
31 |
31 |
|
|
32 |
|
- |
foreach($imgs as $img) { |
|
32 |
+ |
/*foreach($imgs as $img) { |
33 |
33 |
|
$imgsToInsert[] = '("'.$id_locale.'", "'.$img.'")'; |
34 |
34 |
|
} |
35 |
35 |
|
|
36 |
|
- |
$queryImgs = "INSERT INTO immagini_locali(id_locale, img) VALUES" . implode(',', $imgsToInsert); |
|
36 |
+ |
$queryImgs = "INSERT INTO immagini_locali(id_locale, img) VALUES" . implode(',', $imgsToInsert);*/ |
37 |
37 |
|
//echo "<br/>".$queryImgs."<br/>"; |
38 |
38 |
|
|
39 |
|
- |
$this->db->exec($queryImgs); |
|
39 |
+ |
//$this->db->exec($queryImgs); |
40 |
40 |
|
|
41 |
41 |
|
$status["local_id"] = $id_locale; |
42 |
42 |
|
$status["return"] = 0; |