From: Jan Schneider Date: Mon, 22 Feb 2010 21:12:24 +0000 (+0100) Subject: Fix if there are no js files. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=21e5fd2c05ef9c4b62c52711175f6af69ef1452a;p=horde.git Fix if there are no js files. --- 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']);