From e5a4b9c57f8b51017615a2f623136705fcbe13fd Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 11 Mar 2024 15:38:29 +0100 Subject: [PATCH] IDS - align performValidation()->count() to use count() instead (required for the new non phalcon messages lib) --- .../mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php b/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php index 6eccd47c2..131aed21f 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php @@ -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.