浏览代码

fix bug #481886 with anonymous hint from sourceforge trackers :-)

teepe 23 年之前
父节点
当前提交
41939d4219
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      functions/abook_local_file.php

+ 1 - 2
functions/abook_local_file.php

@@ -276,7 +276,6 @@
 	 return $this->set_error(_("Could not lock datafile"));
 	 return $this->set_error(_("Could not lock datafile"));
 
 
        // Read file into memory, ignoring nicknames to delete
        // Read file into memory, ignoring nicknames to delete
-       $this->open();
        @rewind($this->filehandle);
        @rewind($this->filehandle);
        $i = 0;
        $i = 0;
        $rows = array();
        $rows = array();
@@ -313,7 +312,7 @@
 
 
        // Read file into memory, modifying the data for the 
        // Read file into memory, modifying the data for the 
        // user identifyed by $alias
        // user identifyed by $alias
-       $this->open();
+       $this->open(true);
        @rewind($this->filehandle);
        @rewind($this->filehandle);
        $i = 0;
        $i = 0;
        $rows = array();
        $rows = array();