Subversion Repository Public Repository

Nextrek

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

Diff revisions: vs.
  @@ -36,7 +36,7 @@
36 36
37 37 $risposta = $comment_repo->addComment($comment);
38 38
39 - $commentImgs = array_key_exists("images", $_SESSION) ? $_SESSION["images"] : null;
39 + $commentImgs = array_key_exists("imgs", $params) ? $params["imgs"] : null;
40 40
41 41 if ($risposta["return"] == 0 && count($commentImgs)>0) {
42 42 foreach($commentImgs as $image) {
  @@ -47,7 +47,7 @@
47 47
48 48 $comment_repo->addImages($risposta["id"], $commentImgs);
49 49
50 - unset($_SESSION["images"]);
50 + //unset($_SESSION["images"]);
51 51
52 52 }
53 53 catch(PDOException $e)