diff --git a/wire/modules/Inputfield/InputfieldForm.module b/wire/modules/Inputfield/InputfieldForm.module index b3ce5a37..16274a7d 100644 --- a/wire/modules/Inputfield/InputfieldForm.module +++ b/wire/modules/Inputfield/InputfieldForm.module @@ -404,7 +404,7 @@ class InputfieldForm extends InputfieldWrapper { $matches = false; if($subfield == 'count') { - $value = count($value); + $value = wireCount($value); if(self::debug) $this->debugNote("Actual count ($debugNote): $value"); } if(is_object($value)) $value = "$value"; diff --git a/wire/modules/Inputfield/InputfieldMarkup.module b/wire/modules/Inputfield/InputfieldMarkup.module index 44e30aba..51b7b972 100644 --- a/wire/modules/Inputfield/InputfieldMarkup.module +++ b/wire/modules/Inputfield/InputfieldMarkup.module @@ -61,7 +61,7 @@ class InputfieldMarkup extends InputfieldWrapper { } $out = trim($out); - if(count($textformatters)) { + if(wireCount($textformatters)) { foreach($textformatters as $className) { $t = $this->wire('modules')->get($className); if(!$t) continue;