aboutsummaryrefslogtreecommitdiffstats
path: root/util/pconfig
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-13 17:51:39 -0800
committerzotlabs <mike@macgirvin.com>2017-02-13 17:51:39 -0800
commit1f39c16d99720811601791c852314e4c69f24dd5 (patch)
treea6f6521713f4c2b6fc8207ab8871c2aad4749032 /util/pconfig
parentc8aeb5b1601d06e2f8ce0d1659a78ffab65faf03 (diff)
downloadvolse-hubzilla-1f39c16d99720811601791c852314e4c69f24dd5.tar.gz
volse-hubzilla-1f39c16d99720811601791c852314e4c69f24dd5.tar.bz2
volse-hubzilla-1f39c16d99720811601791c852314e4c69f24dd5.zip
util/pconfig - don't enumerate empty arrays, mod_acl - add more comments
Diffstat (limited to 'util/pconfig')
-rwxr-xr-xutil/pconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/pconfig b/util/pconfig
index 1847a5a81..36d894fb5 100755
--- a/util/pconfig
+++ b/util/pconfig
@@ -73,8 +73,10 @@ if($argc == 4) {
if($argc == 3) {
load_pconfig($argv[1],$argv[2]);
- foreach(App::$config[$argv[1]][$argv[2]] as $k => $x) {
- echo "pconfig[{$argv[1]}][{$argv[2]}][{$k}] = " . $x . "\n";
+ if(App::$config[$argv[1]][$argv[2]]) {
+ foreach(App::$config[$argv[1]][$argv[2]] as $k => $x) {
+ echo "pconfig[{$argv[1]}][{$argv[2]}][{$k}] = " . $x . "\n";
+ }
}
}