Commit: 3f150de6d8e72fc1d335830e07cc26e5e056d5b2 Author: Sherif Ramadan <[email protected]> Wed, 12 Dec 2012 14:00:34 -0500 Parents: 66cab007ef9f49c4cfd35851cc504b3461a9889a Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=3f150de6d8e72fc1d335830e07cc26e5e056d5b2 Log: Had to fix the cron script as it was discarding the vote information in the pipe. Changed paths: M scripts/update-user-notes Diff: diff --git a/scripts/update-user-notes b/scripts/update-user-notes index 64ac120..777a284 100755 --- a/scripts/update-user-notes +++ b/scripts/update-user-notes @@ -53,7 +53,7 @@ while (!feof($fp)) { continue; # skip invalid lines } - list($id,$sect,$rate,$ts,$user,$note) = explode("|",$line); + @list($id,$sect,$rate,$ts,$user,$note,$up,$down) = explode("|",$line); $hash = substr(md5($sect),0,16); @mkdir($root.substr($hash,0,2),0755); @@ -74,7 +74,7 @@ while (!feof($fp)) { $note = gzuncompress(base64_decode($note)) or die ("$id failed\n"); fputs($nf, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) . "\n"); if (BUILD_COMPLETE_FILE) { - fputs($bz, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) . "\n"); + fputs($bz, "$id|$sect|$rate|$ts|$user|" . base64_encode($note) . "|$up|$down\n"); } fclose($nf); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
