diff -r 879f0956be86 -r 48ffdc97f54b addressbook.class.php --- a/addressbook.class.php Wed Oct 26 00:15:59 2011 +0200 +++ b/addressbook.class.php Wed Oct 26 00:37:13 2011 +0200 @@ -1,10 +1,13 @@ fh = fopen($file, "a+b"); + @$this->fh = fopen($file, "a+b"); + if (!$this->fh) throw new Address_Book_Exception("Can't open address book."); flock($this->fh, LOCK_EX); $stat = fstat($this->fh); if ($stat['size'] == 0) {