diff options
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c9f589c174..1af919b8a6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2734,6 +2734,11 @@ function build_hidden_fields($field_ary, $specialchar = false, $stripslashes = f */ function parse_cfg_file($filename, $lines = false) { + if (!file_exists($filename)) + { + trigger_error('NO_STYLE_DATA', E_USER_ERROR); + } + $parsed_items = array(); if ($lines === false) |