1
0
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:
Jon Ziebell 2019-07-06 14:11:45 -04:00
parent af69ce9131
commit fd724fd3db

View File

@ -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 {