summaryrefslogtreecommitdiff
path: root/src/PhpBB3.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/PhpBB3.php')
-rw-r--r--src/PhpBB3.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php
index c9acd1e..6fd785f 100644
--- a/src/PhpBB3.php
+++ b/src/PhpBB3.php
@@ -251,6 +251,8 @@ class PhpBB3 {
throw_if_null($mimetype);
throw_if_null($data);
+ global $db;
+
# TODO: check that attachment is a permissible type, size
# lifted from include/functions_upload.php: filespec::clean_filename()