From 5c708797f99480be241830d396eed8abfa37cb1a Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Mon, 5 Feb 2018 06:25:05 -0500 Subject: [PATCH] Update for processwire/processwire-issues#408 PHP 7.2 and changed behavior of count() --- .../Fieldtype/FieldtypeOptions/SelectableOptionConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionConfig.php b/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionConfig.php index c0f32097..a0204f56 100644 --- a/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionConfig.php +++ b/wire/modules/Fieldtype/FieldtypeOptions/SelectableOptionConfig.php @@ -111,7 +111,7 @@ class SelectableOptionConfig extends Wire { // options not posted, check if there are any pending session activities $removedOptionIDs = $this->wire('session')->get($ns, 'removedOptionIDs'); - if(count($removedOptionIDs)) { + if(wireCount($removedOptionIDs)) { $f = $this->wire('modules')->get('InputfieldHidden'); $f->attr('name', '_delete_options');