Nextrek
Diff Revisions
309
vs
310
for /Android/SmartCharging/endPoints/CommentRepository.php
|
@@ -19,6 +19,8 @@ |
19 |
19 |
|
'".$comment->descrizione."', |
20 |
20 |
|
'".$comment->data."')"; |
21 |
21 |
|
|
|
22 |
+ |
//echo "<br/>".$queryComment."<br/>"; |
|
23 |
+ |
|
22 |
24 |
|
$imgs = $comment->imgs; |
23 |
25 |
|
$imgsToInsert = array(); |
24 |
26 |
|
|
|
@@ -164,7 +166,7 @@ |
164 |
166 |
|
public function addImages($id_comment, $imgs) { |
165 |
167 |
|
try { |
166 |
168 |
|
foreach($imgs as $img) { |
167 |
|
- |
$imgsToInsert[] = '("'.$id_locale.'", "'.$img.'")'; |
|
169 |
+ |
$imgsToInsert[] = '("'.$id_comment.'", "'.$img.'")'; |
168 |
170 |
|
} |
169 |
171 |
|
|
170 |
172 |
|
$queryImgs = "INSERT INTO immagini_commenti(id_commento, img) VALUES" . implode(',', $imgsToInsert); |