From 3c4416543fafa1d0e6fee05fff9c6abcd73c7763 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 3 Dec 2010 20:58:52 +0000 Subject: Fixes #2706 simplecache url generator was not handling an empty last cache date git-svn-id: http://code.elgg.org/elgg/trunk@7522 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/views.php') diff --git a/engine/lib/views.php b/engine/lib/views.php index ccba3d173..3385e230c 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -431,7 +431,7 @@ function elgg_view_register_simplecache($viewname) { */ function elgg_view_get_simplecache_url($type, $view) { global $CONFIG; - $lastcache = $CONFIG->lastcache; + $lastcache = (int)$CONFIG->lastcache; if (elgg_view_is_simplecache_enabled()) { $viewtype = elgg_get_viewtype(); -- cgit v1.2.3