From 77016b7e533e9ca44f00c5e84e618eca5056a9e1 Mon Sep 17 00:00:00 2001 From: Hubert Walczak Date: Sun, 9 Jul 2023 12:04:16 +0200 Subject: [PATCH] Fixed crash during sending message to another player --- GameEngine/Message.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Message.php b/GameEngine/Message.php index 5e4c45dd..8e86b609 100755 --- a/GameEngine/Message.php +++ b/GameEngine/Message.php @@ -407,7 +407,7 @@ class Message { $userally = $database->getUserField($session->uid,"alliance",0); $permission=mysqli_fetch_array(mysqli_query($database->dblink,"SELECT opt7 FROM ".TB_PREFIX."ali_permission WHERE uid='".$session->uid."'")); - if(WORD_CENSOR) { + if(defined('WORD_CENSOR')) { $topic = $this->wordCensor($topic); $text = $this->wordCensor($text); } @@ -496,7 +496,7 @@ class Message { } // Vulnerability closed by Shadow - if(WORD_CENSOR) { + if(defined('WORD_CENSOR')) { $topic = $this->wordCensor($topic); $text = $this->wordCensor($text); }