From 76382147aec6fb64fd08f46b82b0db7434a0daf8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 30 Sep 2016 09:22:35 -0400 Subject: [PATCH] Fix Issue #2816 - Fix wrong variable name in Config and PConfig --- include/Core/Config.php | 4 ++-- include/Core/PConfig.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Core/Config.php b/include/Core/Config.php index 761d7f490e..5703558cf3 100644 --- a/include/Core/Config.php +++ b/include/Core/Config.php @@ -2,7 +2,7 @@ namespace Friendica\Core; /** * @file include/Core/Config.php - * + * * @brief Contains the class with methods for system configuration */ @@ -74,7 +74,7 @@ class Config { global $a; - if(! $instore) { + if(! $refresh) { // Looking if the whole family isn't set if(isset($a->config[$family])) { if($a->config[$family] === '!!') { diff --git a/include/Core/PConfig.php b/include/Core/PConfig.php index bf563d06e0..2bc08667a7 100644 --- a/include/Core/PConfig.php +++ b/include/Core/PConfig.php @@ -67,7 +67,7 @@ class PConfig { global $a; - if(! $instore) { + if(! $refresh) { // Looking if the whole family isn't set if(isset($a->config[$uid][$family])) { if($a->config[$uid][$family] === '!!') { @@ -134,7 +134,7 @@ class PConfig { dbesc($key), dbesc($dbvalue) ); - if($ret) + if($ret) return $value; return $ret; }