Use sq_is_writable()
[squirrelmail.git] / functions / abook_local_file.php
index 22a7932b6b275b574c8e933637aa8e9a9b0b4776..d29474f6d4cdd8cae463283e6bb53af96d9cc88f 100644 (file)
@@ -151,7 +151,7 @@ class abook_local_file extends addressbook_backend {
         $this->error = '';
         $file   = $this->filename;
         $create = $this->create;
-        $fopenmode = (($this->writeable && is_writable($file)) ? 'a+' : 'r');
+        $fopenmode = (($this->writeable && sq_is_writable($file)) ? 'a+' : 'r');
 
         /* Return true is file is open and $new is unset */
         if($this->filehandle && !$new) {