summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PhpBB3.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php
index 1cab492..7eed84a 100644
--- a/src/PhpBB3.php
+++ b/src/PhpBB3.php
@@ -260,7 +260,7 @@ class PhpBB3 {
# get extension
$dot = strrpos($filename, '.');
- $extension = $pos === false ? '' : substr($filename, $pos + 1);
+ $extension = $dot === false ? '' : substr($filename, $dot + 1);
# put the attachment data into the db
$sql = 'INSERT INTO ' . ATTACHMENTS_TABLE . ' (' .