fix type hint

This commit is contained in:
Jean-Christian Paul Denis 2023-05-13 00:08:46 +02:00
parent 54801bed21
commit 154b5e96ee
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -65,7 +65,10 @@ class ActivityReportActions
'zoneclearFeedServerAfterAddFeed',
function (Cursor $cur, int $id): void {
$user = dcCore::app()->auth?->getInfo('user_cn');
if (!is_string($user)) {
if (!is_string($user)
|| !is_string($cur->getField('feed_name'))
|| !is_string($cur->getField('feed_feed'))
) {
return;
}
$logs = [