From: Michael M Slusarz Date: Wed, 24 Nov 2010 07:14:33 +0000 (-0700) Subject: file_exists() -> is_readable() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bdf856f3ccd8646980a4ca1965b460ecc5ea1486;p=horde.git file_exists() -> is_readable() --- diff --git a/framework/SessionHandler/lib/Horde/SessionHandler/Storage/File.php b/framework/SessionHandler/lib/Horde/SessionHandler/Storage/File.php index 6cc7f5baa..8b1590995 100644 --- a/framework/SessionHandler/lib/Horde/SessionHandler/Storage/File.php +++ b/framework/SessionHandler/lib/Horde/SessionHandler/Storage/File.php @@ -54,7 +54,7 @@ class Horde_SessionHandler_Storage_File extends Horde_SessionHandler_Storage { $filename = $this->_params['path'] . '/' . self::PREFIX . $id; - return file_exists($filename) + return is_readable($filename) ? file_get_contents($filename) : ''; }