From 7d8b22915389879e81491fedc4e019cd75f86909 Mon Sep 17 00:00:00 2001 From: MicroVB INC Date: Wed, 16 Mar 2016 12:59:59 -0400 Subject: [PATCH] Context is now accessible inside GetVersionCount() globalized $context inside `GetVersionCount()` to eliminate `Notice: Undefined variable: context in /var/www/html/ice/lib/settings-common.php on line 203` Added check if file is readable for `.version-index`'s inside the loop within `GetVersionCount()` --- lib/settings-common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/settings-common.php b/lib/settings-common.php index 63073ad..cdd7198 100644 --- a/lib/settings-common.php +++ b/lib/settings-common.php @@ -182,6 +182,7 @@ if (!function_exists('array_replace_recursive')) { // Get number of versions total for a file function getVersionsCount($fileLoc,$fileName) { + global $context; $count = 0; $dateCounts = array(); // Establish the base, host and date dirs within... @@ -199,7 +200,7 @@ function getVersionsCount($fileLoc,$fileName) { for ($i=0; $i