Topic: call to non object in php 5.0.5 when using common.php
I used this from the docs to try and get the objects needed to integrate:
define('PUN_ROOT', './forums/');
require PUN_ROOT.'include/common.php';
Once you've included common.php, you can access and utilize all of PunBB's global variables and functions. Typically, you will be most interested in the $pun_user array. This array holds information about the current user. Another interesting variable is the database object $db.
But keep getting an error that $db is not an object in functions.php.
php 5.0.5
Is this a bug or just improper usage on my part?