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