Subversion Repository Public Repository

Nextrek

Diff Revisions 300 vs 301 for /Android/SmartCharging/endPoints/add_commento.php

Diff revisions: vs.
  @@ -38,7 +38,7 @@
38 38
39 39 $commentImgs = array_key_exists("images", $_SESSION) ? $_SESSION["images"] : null;
40 40
41 - if ($risposta["return"] == 0) {
41 + if ($risposta["return"] == 0 && count($commentImgs)>0) {
42 42 foreach($commentImgs as $image) {
43 43 rename("./images/temp/".session_id()."/".$image, "./images/".$image);
44 44 }