summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2022-10-25 18:29:10 +0200
committerUrban Müller2022-10-25 18:29:10 +0200
commit4e0d1fdd60ec8a2384f1ad7dac5c6b5b0099a031 (patch)
tree5830cb5164e293cd013b135fc2b3ddfd8e5006e5
parenta322554d7bd21c52c551178ed5f1a706dcd6d112 (diff)
downloaditools-4e0d1fdd60ec8a2384f1ad7dac5c6b5b0099a031.tar.gz
itools-4e0d1fdd60ec8a2384f1ad7dac5c6b5b0099a031.tar.bz2
itools-4e0d1fdd60ec8a2384f1ad7dac5c6b5b0099a031.zip
fix parens
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 16c04b8..b0aeb9f 100644
--- a/it_url.class
+++ b/it_url.class
@@ -688,7 +688,7 @@ static function get_cache($p = array())
}
# cache cleanup preferably at night
- if (time() - @filemtime($p['cachedir'] . "/cleaned") > (date('H') >= 1 && (date('H')*3600 + date('i')*60 < $p['cleanbefore'] ? 80000 : 2*80000)))
+ if (time() - @filemtime($p['cachedir'] . "/cleaned") > ((date('H') >= 1 && date('H')*3600 + date('i')*60 < $p['cleanbefore']) ? 80000 : 2*80000))
{
it::file_put($p['cachedir'] . "/cleaned", ""); # touch could have permission problems
$maxagemin = intval($p['maxage']/60);