X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fattachments.php;h=e92276ed87fd2934596504ff9147e178394a4542;hb=84aa8ccb0b363e366733fe9b762c5c01660eb011;hp=f600e3017fd5c39bde3556814785a8b226e39a92;hpb=92516cf782e07af078fab627e35c75c822702ab2;p=fa-stable.git diff --git a/admin/attachments.php b/admin/attachments.php index f600e301..e92276ed 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -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);