mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -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
|
||||
*/
|
||||
public function get($setting) {
|
||||
if(array_key_exists($this->settings[$setting]) === true) {
|
||||
if(array_key_exists($this->settings[$setting][$this->settings['environment']]) === true) {
|
||||
if(array_key_exists($setting, $this->settings) === true) {
|
||||
if(array_key_exists($this->settings['environment'], $this->settings[$setting]) === true) {
|
||||
return $this->settings[$setting][$this->settings['environment']];
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user