Skip to content

Commit

Permalink
Fixed a PHP 5.4 incompatibility
Browse files Browse the repository at this point in the history
Apparently you can't use method calls directly inside an empty function
in 5.4. What.
  • Loading branch information
benjamminf committed Jun 27, 2016
1 parent d77c2ae commit d915b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo/fieldtypes/NeoFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ private function _prepareInputHtml($id, $name, $settings, $value, $static = fals
*/
private function _getBlockHtml(Neo_BlockTypeModel $blockType, Neo_BlockModel $block = null, $namespace = '', $static = false)
{
$hasErrors = $block ? !empty($block->getAllErrors()) : false;
$errors = $block ? $block->getAllErrors() : [];
$hasErrors = !empty($errors);
$fullNamespace = craft()->templates->namespaceInputName($namespace, craft()->templates->getNamespace());

$cacheKey = implode(':', ['neoblock',
Expand Down

0 comments on commit d915b9d

Please sign in to comment.