From 1ffa2258bc31eeac8550aa4eb03c3d0e7f8063d1 Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 11 May 2010 21:42:05 +0000 Subject: Fixed var name. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6853 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/PhpBB3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 . ' (' . -- cgit v1.2.3