IDS - align performValidation()->count() to use count() instead (required for the new non phalcon messages lib)

This commit is contained in:
Ad Schellevis 2024-03-11 15:38:29 +01:00
parent fffb449433
commit e5a4b9c57f

View File

@ -68,7 +68,7 @@ class ServiceController extends ApiMutableServiceControllerBase
// update cron relation (if this doesn't break consistency)
$mdlIDS->general->UpdateCron = $mdlCron->newDailyJob("IDS", "ids update", "ids rule updates", "*", "0");
if ($mdlCron->performValidation()->count() == 0) {
if (count($mdlCron->performValidation()) == 0) {
$mdlCron->serializeToConfig();
// save data to config, do not validate because the current in memory model doesn't know about the
// cron item just created.