mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 11:04:42 +00:00
IDS - align performValidation()->count() to use count() instead (required for the new non phalcon messages lib)
This commit is contained in:
parent
fffb449433
commit
e5a4b9c57f
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user