]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2706 simplecache url generator was not handling an empty last cache date
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 3 Dec 2010 20:58:52 +0000 (20:58 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 3 Dec 2010 20:58:52 +0000 (20:58 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7522 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/views.php

index ccba3d17340336eddac83e6333685d7f628cf983..3385e230c1ff899f151fe692ffb3b551a64e3ea7 100644 (file)
@@ -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();