summaryrefslogtreecommitdiff
path: root/inc/indexer.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:04:01 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:04:01 +0100
commit443e135d59e9d227eec818dabf9ee64d7a73d474 (patch)
tree14c649d0a1fade810971d7e6da53471b41484fdf /inc/indexer.php
parent4d8acaacee33f49d51c06f6dae1dbe245018a020 (diff)
downloadrpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.gz
rpg-443e135d59e9d227eec818dabf9ee64d7a73d474.tar.bz2
replace boolean conditional checks on possibly uninitialized vars with \!empty/empty/isset as appropriate
Diffstat (limited to 'inc/indexer.php')
-rw-r--r--inc/indexer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/indexer.php b/inc/indexer.php
index 8f0ba7ec6..00b66239d 100644
--- a/inc/indexer.php
+++ b/inc/indexer.php
@@ -1017,8 +1017,9 @@ class Doku_Indexer {
return false;
}
}
- if ($conf['dperm'])
+ if (!empty($conf['dperm'])) {
chmod($lock, $conf['dperm']);
+ }
return $status;
}