Fix rip.txt bug

This commit is contained in:
8chan 2014-07-21 16:54:16 +00:00
parent 1d4955081d
commit 76bd2fe4fa

View File

@ -59,7 +59,7 @@ if ($argc > 1) {
$f = fopen('rip.txt', 'a'); $f = fopen('rip.txt', 'a');
fwrite($f, "--\r\n"); fwrite($f, "--\r\n");
foreach($delete as $i => $d){ foreach($delete as $i => $d){
$s = "RIP /".$d['board']."/, created by ".$d['mod']?$d['mod']:'?'." and last active on ".$d['last_activity']->format('Y-m-d H:i:s.').($d['last_mod'] ? ' Mod last active on ' . $d['last_mod']->format('Y-m-d H:i:s.') : ' Mod never active.') . " Number of posts: {$d['count']}." . "\r\n"; $s = "RIP /".$d['board']."/, created by ".($d['mod']?$d['mod']:'?')." and last active on ".$d['last_activity']->format('Y-m-d H:i:s.').($d['last_mod'] ? ' Mod last active on ' . $d['last_mod']->format('Y-m-d H:i:s.') : ' Mod never active.') . " Number of posts: {$d['count']}." . "\r\n";
echo $s; echo $s;
fwrite($f, $s); fwrite($f, $s);