forked from GithubBackups/vichan
Fix rip.txt bug
This commit is contained in:
parent
1d4955081d
commit
76bd2fe4fa
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user