Fix php 8 error:

- Unsupported operand types: string * int
- Unknown named parameter $func
This commit is contained in:
Hadi Nategh 2021-04-09 10:40:40 +02:00
parent 3aa90c3fd5
commit 3742a44321
2 changed files with 2 additions and 2 deletions

View File

@ -3262,7 +3262,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
$GLOBALS['egw']->preferences->add('mail', 'smime_pass_exp', $_POST['smime_pass_exp']);
$GLOBALS['egw']->preferences->save_repository();
}
Api\Cache::setSession('mail', 'smime_passphrase', $smimePassphrase, $_POST['smime_pass_exp'] * 60);
Api\Cache::setSession('mail', 'smime_passphrase', $smimePassphrase, (int)($_POST['smime_pass_exp']?:10) * 60);
}
$structure = $this->mail_bo->getStructure($uid, $partID, $mailbox, false);
if (($smime = $structure->getMetadata('X-EGroupware-Smime')))

View File

@ -71,7 +71,7 @@ class notifications_push implements Json\PushBackend
//error_log(__METHOD__."() already_send=$already_send, message=".array2string($message));
if (is_array($message) && method_exists($response, $message['method']))
{
call_user_func_array(array($response, $message['method']), (array)$message['data']);
call_user_func_array(array($response, $message['method']), array_values((array)$message['data']));
}
$already_send = $row['notify_id'];
}