From 4d12f1b01425ff419ef95b576a8c4c8ee90e75b2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 3 May 2017 22:37:18 -0400 Subject: [PATCH] Fix overzealous space addition --- boot.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boot.php b/boot.php index aed9d287e6..df62a81cfd 100644 --- a/boot.php +++ b/boot.php @@ -1413,7 +1413,7 @@ function clear_cache($basepath = "", $path = "") { $path = $basepath; } - if (($path == "") OR ( !is_dir($path))) { + if (($path == "") OR (!is_dir($path))) { return; } @@ -1430,10 +1430,10 @@ function clear_cache($basepath = "", $path = "") { if ($dh = opendir($path)) { while (($file = readdir($dh)) !== false) { $fullpath = $path . "/" . $file; - if ((filetype($fullpath) == "dir") and ( $file != ".") and ( $file != "..")) { + if ((filetype($fullpath) == "dir") and ($file != ".") and ($file != "..")) { clear_cache($basepath, $fullpath); } - if ((filetype($fullpath) == "file") and ( filectime($fullpath) < (time() - $cachetime))) { + if ((filetype($fullpath) == "file") and (filectime($fullpath) < (time() - $cachetime))) { unlink($fullpath); } } @@ -1644,7 +1644,7 @@ function argv($x) { function infinite_scroll_data($module) { if (get_pconfig(local_user(), 'system', 'infinite_scroll') - AND ( $module == "network") AND ( $_GET["mode"] != "minimal")) { + AND ($module == "network") AND ($_GET["mode"] != "minimal")) { // get the page number if (is_string($_GET["page"])) { @@ -1657,7 +1657,7 @@ function infinite_scroll_data($module) { // try to get the uri from which we load the content foreach ($_GET AS $param => $value) { - if (($param != "page") AND ( $param != "q")) { + if (($param != "page") AND ($param != "q")) { $reload_uri .= "&" . $param . "=" . urlencode($value); } } -- 2.39.5