* remove unnecessary parentheses in include/require (forgot this part)

This commit is contained in:
slawkens 2018-05-29 21:10:30 +02:00
parent 6ba24eebb0
commit 857aa110c8

View File

@ -175,7 +175,7 @@ if(empty($action))
$errors = array();
if($action == 'show_board' || $action == 'show_thread')
{
require(PAGES . 'forum/' . $action . '.php');
require PAGES . 'forum/' . $action . '.php';
return;
}
@ -194,7 +194,7 @@ if(!ctype_alnum(str_replace(array('-', '_'), '', $action))) {
error('Error: Action contains illegal characters.');
}
else if(file_exists(PAGES . 'forum/' . $action . '.php')) {
require(PAGES . 'forum/' . $action . '.php');
require PAGES . 'forum/' . $action . '.php';
}
else {
error('This page does not exists.');