@@ -87,7 +87,11 @@ |
||
| 87 | 87 | move_uploaded_file($_FILES["file"]["tmp_name"], $target_file); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if($uploadOk)return $target_file_for_base_name; else return 'not uploaded'; |
|
| 90 | + if($uploadOk) { |
|
| 91 | + return $target_file_for_base_name; |
|
| 92 | + } else { |
|
| 93 | + return 'not uploaded'; |
|
| 94 | + } |
|
| 91 | 95 | } |
| 92 | 96 | |
| 93 | 97 | function messageToJSON($file_name_for_db, $messages, $last_msg){ |