Fix array being written instead of username to lastmember.php
This commit is contained in:
parent
6c45e0e564
commit
ac2ff8925c
|
@ -135,7 +135,7 @@ if ($saved_chain != $chain_string) {
|
||||||
fwrite($file, $contents);
|
fwrite($file, $contents);
|
||||||
fclose($file);
|
fclose($file);
|
||||||
$file2 = fopen('lastmember.php', 'w');
|
$file2 = fopen('lastmember.php', 'w');
|
||||||
$contents = "<?php return '" . $chain[count($chain) - 1] . "'; ?>";
|
$contents = "<?php return '" . $chain[count($chain) - 1]["username"] . "'; ?>";
|
||||||
fwrite($file2, $contents);
|
fwrite($file2, $contents);
|
||||||
fclose($file2);
|
fclose($file2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue