Skip to content

Commit

Permalink
fix for php 5.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
anton committed Nov 5, 2012
1 parent a1421dd commit e50d182
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/entity/AmConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function isWritable()
* @return bool
*/
public function isEmpty()
{
{
return !$this->get()->count();
}

Expand Down Expand Up @@ -188,7 +188,7 @@ public function loadSection()
*/
protected function load($name, $create = true)
{
$config = $this->loadSection();
$config = $this->loadSection();
$current = $config->itemAt($name);
if (null === $current) {
if (!$this->normalizeConfig($config, $name)) {
Expand Down Expand Up @@ -235,6 +235,9 @@ protected function resolveConfigName()
$section = $this->loadSection();
$section->remove($default);
foreach ($section as $name => $value) {
if (!is_array($value)) {
continue;
}
$fullClass = $this->getEntity()->getFullClassName();
if (isset($value['class'])
&& (false !== strpos($fullClass, $value['class']))) {
Expand Down

0 comments on commit e50d182

Please sign in to comment.