Double semicolon line endings fixed by @apmuthu.
[fa-stable.git] / admin / attachments.php
index f600e3017fd5c39bde3556814785a8b226e39a92..e92276ed87fd2934596504ff9147e178394a4542 100644 (file)
@@ -119,7 +119,7 @@ if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM')
                                unlink($dir."/".$unique_name);
                }
                else
-                       $unique_name = uniqid('');
+                       $unique_name = random_id();
 
                //save the file
                move_uploaded_file($tmpname, $dir."/".$unique_name);
@@ -169,7 +169,7 @@ function viewing_controls()
        start_row();
        systypes_list_cells(_("Type:"), 'filterType', null, true);
        if (list_updated('filterType'))
-               $selected_id = -1;;
+               $selected_id = -1;
 
        end_row();
     end_table(1);