From 2aaadc7b07be4aa7715f235fba8738b357726ee6 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Thu, 2 Aug 2001 22:33:20 +0000 Subject: Introduced pagestart.inc git-svn-id: file:///svn/phpbb/trunk@798 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'phpBB/admin/index.php') diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index d620b653a0..8f2c6d9b81 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -153,7 +153,7 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' ) $avatar_dir_size = 0; - if ($avatar_dir = opendir($phpbb_root_path . $board_config['avatar_path'])) + if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) { while($file = readdir($avatar_dir)) { @@ -164,6 +164,11 @@ elseif( $HTTP_GET_VARS['pane'] == 'right' ) } closedir($avatar_dir); } + else + { + // Couldn't open Avatar dir. + $avatar_dir_size = '?'; + } // // This bit of code translates the avatar directory size into human readable format @@ -415,4 +420,4 @@ else } -?> \ No newline at end of file +?> -- cgit v1.2.1