From: Gunnar Wrobel Date: Tue, 3 Mar 2009 21:21:51 +0000 (+0000) Subject: Add object missing exception and fix property access. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8c0fec43eee286b190de274b9be7094c2160b53d;p=horde.git Add object missing exception and fix property access. --- diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/ObjectMissing.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/ObjectMissing.php new file mode 100644 index 000000000..c0c2e6de1 --- /dev/null +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/ObjectMissing.php @@ -0,0 +1,30 @@ + + * @license http://www.fsf.org/copyleft/lgpl.html LGPL + * @link http://pear.horde.org/index.php?package=Kolab_Server + */ + +/** + * This class provides an exception that indicates a non-existing object. + * + * Copyright 2009 The Horde Project (http://www.horde.org/) + * + * See the enclosed file COPYING for license information (LGPL). If you + * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. + * + * @category Kolab + * @package Kolab_Server + * @author Gunnar Wrobel + * @license http://www.fsf.org/copyleft/lgpl.html LGPL + * @link http://pear.horde.org/index.php?package=Kolab_Server + */ +class Horde_Kolab_Server_ObjectMissing extends Exception +{ +} diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/file.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/file.php index 0d5f0f74e..25309438b 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/file.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/file.php @@ -59,7 +59,7 @@ class Horde_Kolab_Server_file extends Horde_Kolab_Server_test */ protected function load() { - $raw_data = file_get_contents($this->file); + $raw_data = file_get_contents($this->_file); $data = @unserialize($raw_data); if ($data !== false) { $this->_data = $data;