1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Fixes #1697 - PHP7 compatibility fix for chatbox moderate page.

This commit is contained in:
Cameron
2016-06-13 08:18:38 -07:00
parent fb223639c1
commit 675046b65f
3 changed files with 61 additions and 28 deletions

View File

@@ -279,7 +279,11 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
{
$pref['cb_mod'] = e_UC_ADMIN;
}
define("CB_MOD", check_class($pref['cb_mod']));
if(!defined('CB_MOD'))
{
define("CB_MOD", check_class($pref['cb_mod']));
}
$qry = "
SELECT c.*, u.user_name, u.user_image FROM #chatbox AS c