|
From: Benjamin C. <bc...@us...> - 2002-05-24 12:47:36
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv8995/inc
Modified Files:
auth.php
Log Message:
Clobber warnings for auth checks
Index: auth.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- auth.php 24 May 2002 12:44:35 -0000 1.16
+++ auth.php 24 May 2002 12:47:33 -0000 1.17
@@ -132,18 +132,18 @@
global $HTTP_SESSION_VARS;
// Administrators always pass
- if (isset($HTTP_SESSION_VARS[$auth_var]['Admin'])) {
+ if (@isset($HTTP_SESSION_VARS[$auth_var]['Admin'])) {
return true;
}
if (is_array($reqs)) {
foreach ($reqs as $req) {
- if (!isset($HTTP_SESSION_VARS[$auth_var][$req])) {
+ if (!@isset($HTTP_SESSION_VARS[$auth_var][$req])) {
return false;
}
}
} else {
- if (!isset($HTTP_SESSION_VARS[$auth_var][$reqs])) {
+ if (!@isset($HTTP_SESSION_VARS[$auth_var][$reqs])) {
return false;
}
}
|