summaryrefslogtreecommitdiff
path: root/static/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'static/upload.php')
-rw-r--r--static/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/upload.php b/static/upload.php
index 655dd9c..a37c549 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -80,7 +80,7 @@ function generate_name($file)
}
// Check if a file with the same name does already exist in the database
- $q = $db->prepare('SELECT COUNT(name) FROM pomf WHERE name = (:name)');
+ $q = $db->prepare('SELECT COUNT(filename) FROM files WHERE filename = (:name)');
$q->bindValue(':name', $name, PDO::PARAM_STR);
$q->execute();
$result = $q->fetchColumn();