Skip to content

Commit

Permalink
fix Settings:__get
Browse files Browse the repository at this point in the history
не было возможности хранить настройки под свойством которое совпадо с названием API
  • Loading branch information
osben committed Sep 12, 2016
1 parent 4172930 commit 4e4d090
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ public function __construct()

public function __get($name)
{
if ($res = parent::__get($name)) {
return $res;
}

if (isset($this->vars[$name])) {
return $this->vars[$name];
} elseif ($res = parent::__get($name)) {
return $res;
} else {
return null;
}
Expand Down

0 comments on commit 4e4d090

Please sign in to comment.