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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user