1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 03:05:26 +02:00

Update for processwire/processwire-issues#408 PHP 7.2 and changed behavior of count()

This commit is contained in:
Ryan Cramer
2018-02-05 06:25:05 -05:00
parent f89544ea04
commit 5c708797f9

View File

@@ -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');