Fixed crash during sending message to another player

This commit is contained in:
Hubert Walczak
2023-07-09 12:04:16 +02:00
parent 3d95916c29
commit 77016b7e53
+2 -2
View File
@@ -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);
}