X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconfig.php;h=1f2a70e5a144bc4529523bd104b1428646b1c29b;hb=794ae669cefa8234da08718e81a5872832b79259;hp=60cd00cf6466bf606787a433ac4214e86b2af0f5;hpb=f9a40ccbdea69fc7ffcbdc87356d535c67371210;p=friendica.git diff --git a/include/config.php b/include/config.php index 60cd00cf64..1f2a70e5a1 100644 --- a/include/config.php +++ b/include/config.php @@ -22,13 +22,13 @@ function load_config($family) { if(count($r)) { foreach($r as $rr) { $k = $rr['k']; - if ($rr['cat'] === 'config') { + if ($family === 'config') { $a->config[$k] = $rr['v']; } else { $a->config[$family][$k] = $rr['v']; } } - } else if (isset($rr) && ($rr['cat'] != 'config')) { + } else if ($family != 'config') { // Negative caching $a->config[$family] = "!!"; } @@ -126,7 +126,7 @@ function load_pconfig($uid,$family) { $k = $rr['k']; $a->config[$uid][$family][$k] = $rr['v']; } - } else if ($rr['cat'] != 'config') { + } else if ($family != 'config') { // Negative caching $a->config[$uid][$family] = "!!"; }