Fix ref to (unused) undefined constant

This commit is contained in:
Xkeeper 2018-01-24 18:49:50 -08:00
parent a6a22e7ea9
commit 776472e122

View File

@ -412,8 +412,8 @@
}
*/
//if ($loguserid != 3 && $loguserid != 2)
if (($loguser['powerlevel'] <= 5) and (!IS_AJAX_REQUEST)) {
$influencelv=calclvl(calcexp($loguser[posts],(ctime()-$loguser[regdate])/86400));
if (($loguser['powerlevel'] <= 5) && (!defined("IS_AJAX_REQUEST") || !IS_AJAX_REQUEST)) {
$influencelv=calclvl(calcexp($loguser['posts'],(ctime()-$loguser['regdate'])/86400));
// Alart #defcon?
if ($loguser['lastip'] != $_SERVER['REMOTE_ADDR']) {