Add object missing exception and fix property access.
authorGunnar Wrobel <p@rdus.de>
Tue, 3 Mar 2009 21:21:51 +0000 (21:21 +0000)
committerGunnar Wrobel <p@rdus.de>
Tue, 3 Mar 2009 21:21:51 +0000 (21:21 +0000)
framework/Kolab_Server/lib/Horde/Kolab/Server/ObjectMissing.php [new file with mode: 0644]
framework/Kolab_Server/lib/Horde/Kolab/Server/file.php

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 (file)
index 0000000..c0c2e6d
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/**
+ * A library for accessing the Kolab user database.
+ *
+ * PHP version 5
+ *
+ * @category Kolab
+ * @package  Kolab_Server
+ * @author   Gunnar Wrobel <wrobel@pardus.de>
+ * @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 <wrobel@pardus.de>
+ * @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
+{
+}
index 0d5f0f7..2530943 100644 (file)
@@ -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;