aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index ab88e5b9e3..e493353718 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -133,6 +133,8 @@ function generate_forum_nav(&$forum_data)
// Returns forum parents as an array. Get them from forum_data if available, or update the database otherwise
function get_forum_parents($forum_data)
{
+ global $db;
+
$forum_parents = array();
if ($forum_data['parent_id'] > 0)
{