Nextrek
Diff Revisions 281 vs 282 for /Android/SmartCharging/endPoints/registrazione_utente.php
@@ -42,10 +42,9 @@ | |||
42 | 42 | ||
43 | 43 | if ($params["avatar"] != "") { | |
44 | 44 | $imgExtention= substr(strrchr($params["avatar"],'.'),1); | |
45 | + | $risposta["avatar_path"] = "./avatar/".sha1($strToHash)."-".strval(time()).".".$imgExtention; | |
45 | 46 | } | |
46 | 47 | ||
47 | - | $risposta["avatar_path"] = "./avatar/".sha1($strToHash)."-".strval(time()).".".$imgExtention; | |
48 | - | ||
49 | 48 | } | |
50 | 49 | catch(PDOException $e) | |
51 | 50 | { |