mirror of
https://github.com/beestat/app.git
synced 2025-06-03 05:36:51 -04:00
Fixed bug in setting->get().
This commit is contained in:
parent
af69ce9131
commit
fd724fd3db
@ -201,8 +201,8 @@ final class setting {
|
|||||||
* @return mixed The setting
|
* @return mixed The setting
|
||||||
*/
|
*/
|
||||||
public function get($setting) {
|
public function get($setting) {
|
||||||
if(array_key_exists($this->settings[$setting]) === true) {
|
if(array_key_exists($setting, $this->settings) === true) {
|
||||||
if(array_key_exists($this->settings[$setting][$this->settings['environment']]) === true) {
|
if(array_key_exists($this->settings['environment'], $this->settings[$setting]) === true) {
|
||||||
return $this->settings[$setting][$this->settings['environment']];
|
return $this->settings[$setting][$this->settings['environment']];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user