Skip to content

Commit

Permalink
be php 5.3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplb committed Sep 28, 2015
1 parent 5b07965 commit a9c6699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CRUDlex/CRUDServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function init(CRUDDataFactoryInterface $dataFactory, $crudFile, CRUDFileP
$parsedYaml = $this->readYaml($crudFile);

$this->datas = array();
foreach ((empty($parsedYaml) ? [] : $parsedYaml) as $name => $crud) {
foreach ((empty($parsedYaml) ? array() : $parsedYaml) as $name => $crud) {
if (!is_array($crud) || !isset($crud['fields'])) continue;

$label = array_key_exists('label', $crud) ? $crud['label'] : $name;
Expand Down

0 comments on commit a9c6699

Please sign in to comment.