Fix array being written instead of username to lastmember.php

This commit is contained in:
Ceda EI 2018-04-05 12:34:17 +05:30
parent 6c45e0e564
commit ac2ff8925c
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ if ($saved_chain != $chain_string) {
fwrite($file, $contents);
fclose($file);
$file2 = fopen('lastmember.php', 'w');
$contents = "<?php return '" . $chain[count($chain) - 1] . "'; ?>";
$contents = "<?php return '" . $chain[count($chain) - 1]["username"] . "'; ?>";
fwrite($file2, $contents);
fclose($file2);
}