diff options
Diffstat (limited to 'phpBB/admin/index.php')
-rw-r--r-- | phpBB/admin/index.php | 9 |
1 files changed, 7 insertions, 2 deletions
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 +?> |