aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorJanek Lasocki-Biczysko <j.lasocki-biczysko@intrallect.com>2012-01-27 16:51:33 +0000
committerCash Costello <cash.costello@gmail.com>2012-02-03 07:45:01 -0500
commit76d089fe3662a7051258d6d1843a1167ea8017b1 (patch)
tree133a3316ef34d5df0a0f5fa7c21cf730e4d0279b /engine
parent8950174d05884af92ba8c75608e4f32234d965b4 (diff)
downloadelgg-76d089fe3662a7051258d6d1843a1167ea8017b1.tar.gz
elgg-76d089fe3662a7051258d6d1843a1167ea8017b1.tar.bz2
lazy boolean expression evaluation leaves function expressions
unevaluated (!)
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/cache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 6f6a02abe..d4cd6b460 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -375,7 +375,7 @@ function elgg_invalidate_simplecache() {
$return = true;
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
- $return = $return && unlink($CONFIG->dataroot . 'views_simplecache/' . $file);
+ $return &= unlink($CONFIG->dataroot . 'views_simplecache/' . $file);
}
}
closedir($handle);
@@ -388,8 +388,8 @@ function elgg_invalidate_simplecache() {
}
foreach ($viewtypes as $viewtype) {
- $return = $return && datalist_set("simplecache_lastupdate_$viewtype", 0);
- $return = $return && datalist_set("simplecache_lastcached_$viewtype", 0);
+ $return &= datalist_set("simplecache_lastupdate_$viewtype", 0);
+ $return &= datalist_set("simplecache_lastcached_$viewtype", 0);
}
return $return;