Nextrek
Diff Revisions
300
vs
309
for /Android/SmartCharging/endPoints/registrazione_locale.php
|
@@ -72,7 +72,7 @@ |
72 |
72 |
|
$risposta["return"] = $statusLocal["return"]; |
73 |
73 |
|
|
74 |
74 |
|
|
75 |
|
- |
$localImgs = array_key_exists("images", $_SESSION) ? $_SESSION["images"] : null; |
|
75 |
+ |
$localImgs = array_key_exists("imgs", $params) ? $params["imgs"] : null; |
76 |
76 |
|
|
77 |
77 |
|
if ($risposta["return"] == 0 && count($localImgs)>0) { |
78 |
78 |
|
foreach($localImgs as $image) { |
|
@@ -82,7 +82,7 @@ |
82 |
82 |
|
$local_repo->addImages($risposta["local_id"], $localImgs); |
83 |
83 |
|
} |
84 |
84 |
|
|
85 |
|
- |
unset($_SESSION["images"]); |
|
85 |
+ |
//unset($_SESSION["images"]); |
86 |
86 |
|
|
87 |
87 |
|
echo json_encode($risposta); |
88 |
88 |
|
} |