phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] squirrelmail/functions abook_local_file.php,1.4


From: powerstat
Subject: [Phpgroupware-cvs] squirrelmail/functions abook_local_file.php,1.4
Date: Wed, 4 May 2005 15:56:00 +0200

Update of squirrelmail/functions

Modified Files:
     Branch: MAIN
            abook_local_file.php lines: +4 -4

Log Message:
Fixes deprecated (since 2003) call by reference functions calls. One function 
declaration has been changed for call by reference

====================================================
Index: squirrelmail/functions/abook_local_file.php
diff -u squirrelmail/functions/abook_local_file.php:1.3 
squirrelmail/functions/abook_local_file.php:1.4
--- squirrelmail/functions/abook_local_file.php:1.3     Wed Jun 18 22:25:37 2003
+++ squirrelmail/functions/abook_local_file.php Wed May  4 13:56:09 2005
@@ -125,7 +125,7 @@

      // Overwrite the file with data from $rows
      // NOTE! Previous locks are broken by this function
-     function overwrite($rows) {
+     function overwrite(&$rows) {
        $newfh = @fopen($this->filename, 'w');
        if(!$newfh)
         return $this->set_error("$file: " . lang("Open failed"));
@@ -285,7 +285,7 @@
        }

        // Write data back
-       if(!$this->overwrite(&$rows)) {
+       if(!$this->overwrite($rows)) {
         $this->unlock();
         return false;
        }
@@ -329,7 +329,7 @@
        }

        // Write data back
-       if(!$this->overwrite(&$rows)) {
+       if(!$this->overwrite($rows)) {
         $this->unlock();
         return false;
        }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]