cvs: phpweb /bin get-user-notes
| From: | Jim Winstead | Date: | Fri, 21 Sep 2001 19:46:20 +0000 |
| Subject: | cvs: phpweb /bin get-user-notes | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6542@lists.php.net to get a copy of this message | ||
jimw Fri Sep 21 15:46:20 2001 EDT
Modified files:
/phpweb/bin get-user-notes
Log:
fix duplicate use of $file
Index: phpweb/bin/get-user-notes
diff -u phpweb/bin/get-user-notes:1.3 phpweb/bin/get-user-notes:1.4
--- phpweb/bin/get-user-notes:1.3 Tue Aug 28 03:26:29 2001
+++ phpweb/bin/get-user-notes Fri Sep 21 15:46:20 2001
@@ -27,13 +27,13 @@
}
$mtime = filemtime($file);
- if (!($file = @fopen($file,"a"))) {
+ if (!($nf = @fopen($file,"a"))) {
echo "unable to open $notes file $hash\n";
continue;
}
$note = gzuncompress(base64_decode($note));
- fputs($file,"$id|$sect|$rate|$ts|$user|".base64_encode($note)."\n");
- fclose($file);
+ fputs($nf,"$id|$sect|$rate|$ts|$user|".base64_encode($note)."\n");
+ fclose($nf);
touch($file, $mtime < $ts ? $ts : $mtime);
}