projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f10a3
)
*** empty log message ***
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 8 Jan 2009 01:18:39 +0000
(
01:18
+0000)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 8 Jan 2009 01:18:39 +0000
(
01:18
+0000)
admin/attachments.php
patch
|
blob
|
history
diff --git
a/admin/attachments.php
b/admin/attachments.php
index e623f0b9887d5639ca4482ec111f9b27f0d0a61a..8b06b05ab5be5e3449a0c138892e0522cee47491 100644
(file)
--- a/
admin/attachments.php
+++ b/
admin/attachments.php
@@
-79,7
+79,7
@@
if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM')
fwrite($fp, $index_file);
fclose($fp);
}
- if ($Mode == 'UPDATE_ITEM')
+ if ($Mode == 'UPDATE_ITEM'
&& file_exists($dir."/".$_POST['unique_name'])
)
unlink($dir."/".$_POST['unique_name']);
$unique_name = uniqid('');