

Nextrek
Diff Revisions 517 vs 537 for /Android/SmartCharging/endPoints/nightly/get_commenti.php
@@ -36,8 +36,9 @@ | |||
36 | 36 | catch(PDOException $e) | |
37 | 37 | { | |
38 | 38 | echo $e->getMessage(); | |
39 | - | $risposta["id"] = -1; | |
40 | - | $risposta["comments"] = null; | |
39 | + | $risposta = createErrorMessage(1, "Errore DB"); | |
40 | + | /*$risposta["id"] = -1; | |
41 | + | $risposta["comments"] = null;*/ | |
41 | 42 | } | |
42 | 43 | ||
43 | 44 | echo json_encode($risposta); |