function file_admins_replace($viejo, $nuevo)
{
if (($admins = file_admins_get()) === false) return false; // error
function file_admins_replace($viejo, $nuevo)
{
if (($admins = file_admins_get()) === false) return false; // error
- if (array_walk($admins, '_file_admins_walk_replace', array($viejo, $nuevo)))
- return false; //error
+ array_walk($admins, '_file_admins_walk_replace', array($viejo, $nuevo));
if (($f = fopen('data/admins.txt', 'w')) === false) return false; //error
foreach ($admins as $admin) fwrite($f, "$admin\n");
fclose($f);
if (($f = fopen('data/admins.txt', 'w')) === false) return false; //error
foreach ($admins as $admin) fwrite($f, "$admin\n");
fclose($f);