mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fixed crash during sending message to another player
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user