Fix uncont PHP 7.2 error

This commit is contained in:
Alex Stoica
2018-01-07 05:28:35 +00:00
parent 7b67bed84e
commit b87fb4eb0e
+2 -2
View File
@@ -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;