Bugfix count(null) www/pages

This commit is contained in:
Xenomporio
2022-06-10 11:28:28 +02:00
parent 93e7ee4903
commit eaa3b1da75
53 changed files with 409 additions and 409 deletions
+2 -2
View File
@@ -728,7 +728,7 @@ class GoogleApi
if ($data['type'] === 'mail') {
$users = $this->gateway->getApiUsersByAccount($data['id_name']);
if (count($users) > 0) {
if ((!empty($users)?count($users):0) > 0) {
$this->auth->removeUserToken($users[0]);
}
@@ -837,7 +837,7 @@ class GoogleApi
if ($api !== null && $api->getType() === 'mail') {
$users = $this->gateway->getApiUsersByAccount($api->getIdName());
$token = '';
if (count($users) > 0) {
if ((!empty($users)?count($users):0) > 0) {
$token = $users[0]->getAccessToken();
}
} else {