mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 08:34:33 +00:00
Fix uncont PHP 7.2 error
This commit is contained in:
@@ -653,7 +653,7 @@ class Message {
|
||||
}
|
||||
|
||||
private function findSent($id) {
|
||||
if (count($this->sent)) {
|
||||
if (!empty($this->sent)) {
|
||||
foreach ( $this->sent as $message ) {
|
||||
if ( $message['id'] == $id ) {
|
||||
return true;
|
||||
@@ -665,7 +665,7 @@ class Message {
|
||||
}
|
||||
|
||||
private function findArchive($id) {
|
||||
if (count($this->archived)) {
|
||||
if (!empty($this->archived)) {
|
||||
foreach ( $this->archived as $message ) {
|
||||
if ( $message['id'] == $id ) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user