aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 20:58:52 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 20:58:52 +0000
commit3c4416543fafa1d0e6fee05fff9c6abcd73c7763 (patch)
tree8c16167208c2acdf4bab37865e7055b3e25caecd /engine
parent10dbb5d350537b9d5cecd8b9122592900b144769 (diff)
downloadelgg-3c4416543fafa1d0e6fee05fff9c6abcd73c7763.tar.gz
elgg-3c4416543fafa1d0e6fee05fff9c6abcd73c7763.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/views.php2
1 files changed, 1 insertions, 1 deletions
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();