Apparently the break from this code did some good. I went back and looked at this issue and it was a DOH moment. The call to the function wasn't passing the argument the constructor requires. Oops. As a result the code also doesn't need to worry about assigning the ->pre or ->db pointer since the constructor already does that.
Index: C:/Code Repositories/QSFP Branch/qsfportal/admincp/sources/perms.php
===================================================================
--- C:/Code Repositories/QSFP Branch/qsfportal/admincp/sources/perms.php (revision 361)
+++ C:/Code Repositories/QSFP Branch/qsfportal/admincp/sources/perms.php (revision 362)
@@ -281,9 +281,7 @@
while ($sub = $this->db->nqfetch($query))//if the user has subscriptions
{
- $perms = new permissions;
- $perms->db = &$this->db;
- $perms->pre = &$this->pre;
+ $perms = new permissions($this);
$perms->get_perms($sub['user_group'], $sub['user_id'], $sub['user_perms']);
if ($sub['subscription_type'] == 'forum') {
@@ -309,9 +307,7 @@
while ($sub = $this->db->nqfetch($query))
{
- $perms = new permissions;
- $perms->db = &$this->db;
- $perms->pre = &$this->pre;
+ $perms = new permissions($this);
$perms->get_perms($sub['user_group'], $sub['user_id'], $sub['group_perms']);
if ($sub['subscription_type'] == 'forum') {
.........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984