Nextrek
Diff Revisions
683
vs
685
for /Android/SmartCharging/endPoints/repositories/CommentRepository.php
|
@@ -113,7 +113,7 @@ |
113 |
113 |
|
foreach ($rows as $row) { |
114 |
114 |
|
$comment_id = $row["id_commento"]; |
115 |
115 |
|
|
116 |
|
- |
$imgRow = (!is_null($row["img"])) ? IMAGES_PATH.$row["img"] : null; |
|
116 |
+ |
$imgRow = (!is_null($row["img"])) ? IMAGE_SERVER.IMAGES_PATH.$row["img"] : null; |
117 |
117 |
|
|
118 |
118 |
|
if (!array_key_exists($comment_id, $comment_list)) { |
119 |
119 |
|
$new_comment = new Comment(); |
|
@@ -125,7 +125,7 @@ |
125 |
125 |
|
$new_comment->voto = $row["voto"]; |
126 |
126 |
|
$new_comment->descrizione = $row["descrizione"]; |
127 |
127 |
|
$new_comment->data = $row["data"]; |
128 |
|
- |
$new_comment->imgs = (!is_null($imgRow)) ? array(IMAGE_SERVER.IMAGES_PATH.$imgRow) : array(); |
|
128 |
+ |
$new_comment->imgs = (!is_null($imgRow)) ? array($imgRow) : array(); |
129 |
129 |
|
|
130 |
130 |
|
$comment_list[$comment_id] = $new_comment; |
131 |
131 |
|
} else if (!is_null($imgRow)) { |