summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-05-11 21:42:05 +0000
committeruckelman <uckelman@nomic.net>2010-05-11 21:42:05 +0000
commit1ffa2258bc31eeac8550aa4eb03c3d0e7f8063d1 (patch)
tree92539e7261ebba2dfb6115ad55850ec061751ba3
parent0004c536c10ebe915787dde62477bf74737b429e (diff)
Fixed var name.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6853 67b53d14-2c14-4ace-a08f-0dab2b34000c
-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 . ' (' .