mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-29 14:47:14 +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);
|
$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."'"));
|
$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);
|
$topic = $this->wordCensor($topic);
|
||||||
$text = $this->wordCensor($text);
|
$text = $this->wordCensor($text);
|
||||||
}
|
}
|
||||||
@@ -496,7 +496,7 @@ class Message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Vulnerability closed by Shadow
|
// Vulnerability closed by Shadow
|
||||||
if(WORD_CENSOR) {
|
if(defined('WORD_CENSOR')) {
|
||||||
$topic = $this->wordCensor($topic);
|
$topic = $this->wordCensor($topic);
|
||||||
$text = $this->wordCensor($text);
|
$text = $this->wordCensor($text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user