diff --git a/kernel/classes/eznodeviewfunctions.php b/kernel/classes/eznodeviewfunctions.php
index <HASH>..<HASH> 100644
--- a/kernel/classes/eznodeviewfunctions.php
+++ b/kernel/classes/eznodeviewfunctions.php
@@ -320,7 +320,16 @@ class eZNodeviewfunctions
         {
 //        $contents = $cacheFile->fetchContents();
             $contents = file_get_contents( $file );
-            $Result = unserialize( $contents );
+            $Result = @unserialize( $contents );
+
+            // This should only happen when :
+            // - the node does not exists
+            // - the object does not exists
+            // - the node / object are not readable / invisible
+            if( !$Result )
+            {
+                $cacheExpired = true;
+            }
 
             // Check if cache has expired when cache_ttl is set
             $cacheTTL = isset( $Result['cache_ttl'] ) ? $Result['cache_ttl'] : -1;
@@ -459,4 +468,4 @@ class eZNodeviewfunctions
     }
 }
 
-?>
\ No newline at end of file
+?>
- Fixed a bug with ezfs2 and permission system
# When we access a node that is not readable the cache
# file generation was lost


git-svn-id: file:///home/patrick.allaert/svn-git/ezp-repo/ezpublish/trunk@<I> a<I>eee8c-daba-<I>-acae-fa<I>f<I>