From 533a052f9b3ddc24f1facbf8cfdf9f1e42f19f91 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 4 May 2005 14:19:02 +0000 Subject: [PATCH] bugfix --- src/lib/file.admins.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/file.admins.php b/src/lib/file.admins.php index 4e7caa5..74498c9 100644 --- a/src/lib/file.admins.php +++ b/src/lib/file.admins.php @@ -15,7 +15,7 @@ */ function file_admins_check() { - return count(@file('data/admins.txt', 'r')) > 1; + return count(@file('data/admins.txt')) > 1; } /** @@ -25,7 +25,7 @@ function file_admins_check() */ function file_admins_es_admin($user) { - if (!($admins = @file('data/admins.txt', 'r'))) return false; + if (!($admins = file('data/admins.txt'))) return false; foreach ($admins as $admin) if (trim($admin) == $user) return true; return false; } @@ -37,7 +37,7 @@ function file_admins_es_admin($user) */ function file_admins_get() { - if (!($admins = @file('data/admins.txt', 'r'))) return false; + if (!($admins = file('data/admins.txt'))) return false; if (array_walk($admins, '_file_admins_walk_trim')) return false; return $admins; } -- 2.43.0