- Proper iteration of files

git-svn-id: file:///svn/phpbb/trunk@5594 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-03-01 00:02:31 +00:00
parent 0e8e0b6504
commit cbfe138cdc

View file

@ -307,7 +307,7 @@ class acp_board
$auth_plugins = array(); $auth_plugins = array();
$dp = opendir($phpbb_root_path . 'includes/auth'); $dp = opendir($phpbb_root_path . 'includes/auth');
while ($file = readdir($dp)) while (($file = readdir($dp)) !== false)
{ {
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file)) if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
{ {
@ -438,7 +438,7 @@ class acp_board
$auth_plugins = array(); $auth_plugins = array();
$dp = opendir($phpbb_root_path . 'includes/auth'); $dp = opendir($phpbb_root_path . 'includes/auth');
while ($file = readdir($dp)) while (($file = readdir($dp)) !== false)
{ {
if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file)) if (preg_match('#^auth_(.*?)\.' . $phpEx . '$#', $file))
{ {
@ -575,7 +575,7 @@ class acp_board
$search_plugins = array(); $search_plugins = array();
$dp = opendir($phpbb_root_path . 'includes/search'); $dp = opendir($phpbb_root_path . 'includes/search');
while ($file = readdir($dp)) while (($file = readdir($dp)) !== false)
{ {
if ((preg_match('#\.' . $phpEx . '$#', $file)) && ($file != "search.$phpEx")) if ((preg_match('#\.' . $phpEx . '$#', $file)) && ($file != "search.$phpEx"))
{ {