diff --git a/lib/plugins/sfCompat10Plugin/lib/config/sfValidatorConfigHandler.class.php b/lib/plugins/sfCompat10Plugin/lib/config/sfValidatorConfigHandler.class.php index bb9b1ca197..f3923d477c 100644 --- a/lib/plugins/sfCompat10Plugin/lib/config/sfValidatorConfigHandler.class.php +++ b/lib/plugins/sfCompat10Plugin/lib/config/sfValidatorConfigHandler.class.php @@ -104,7 +104,7 @@ public function execute($configFiles) $this->generateRegistration('GET', $data, $methods, $names, $validators); - if (count($fillin)) + if ($fillin !== null && count($fillin)) { $data[] = sprintf(" \$this->context->getRequest()->setAttribute('symfony.fillin', %s);", $fillin); } @@ -117,7 +117,7 @@ public function execute($configFiles) $this->generateRegistration('POST', $data, $methods, $names, $validators); - if (count($fillin)) + if ($fillin !== null && count($fillin)) { $data[] = sprintf(" \$this->context->getRequest()->setAttribute('symfony.fillin', %s);", $fillin); }