]> git.mxchange.org Git - friendica.git/commitdiff
Fix Issue #2816
authorHypolite Petovan <ben.lort@gmail.com>
Fri, 30 Sep 2016 13:22:35 +0000 (09:22 -0400)
committerHypolite Petovan <ben.lort@gmail.com>
Fri, 30 Sep 2016 13:22:35 +0000 (09:22 -0400)
- Fix wrong variable name in Config and PConfig

include/Core/Config.php
include/Core/PConfig.php

index 761d7f490ec6d34c7917bae4546692691ca01b6f..5703558cf336f93103b53659d3e5598286d7daf7 100644 (file)
@@ -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] === '!<unset>!') {
index bf563d06e01a5bf242fe084872b7e7cca4e34bde..2bc08667a7f2f431e72686f32333971dd8e8a1bf 100644 (file)
@@ -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] === '!<unset>!') {
@@ -134,7 +134,7 @@ class PConfig {
                                dbesc($key),
                                dbesc($dbvalue)
                        );
-                       if($ret) 
+                       if($ret)
                                return $value;
                        return $ret;
                }