summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/upload.php b/static/upload.php
index 780eb5b..3fd4c31 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -31,6 +31,7 @@ function generate_name ($file) {
if ($tries-- == 0) throw new Exception('Gave up trying to find an unused name');
//Random filename generator
+ $newname='';
$startNumber = ord("a");
$endNumber = ord("z");
for ($i = 0; $i < 6; $i++) {