From 21e5fd2c05ef9c4b62c52711175f6af69ef1452a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 22 Feb 2010 22:12:24 +0100 Subject: [PATCH] Fix if there are no js files. --- framework/Core/lib/Horde.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 60d1445b6..10ba23097 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -330,7 +330,6 @@ HTML; } $js_tocache = $js_force = $js_external = array(); - $mtime = array(0); $s_list = $hsf->listFiles(); if (empty($s_list)) { @@ -388,6 +387,10 @@ HTML; } foreach (array_merge($js_force, array($js_tocache)) as $files) { + if (!count($files)) { + continue; + } + $mtime = max($files['mtime']); unset($files['mtime']); -- 2.11.0