mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* remove unnecessary parentheses in include/require
This commit is contained in:
@@ -20,14 +20,14 @@ define('MOTD_EXISTS', $db->hasColumn('guilds', 'motd'));
|
||||
|
||||
//show list of guilds
|
||||
if(empty($action)) {
|
||||
require(PAGES . 'guilds/list_of_guilds.php');
|
||||
require PAGES . 'guilds/list_of_guilds.php';
|
||||
}
|
||||
else {
|
||||
if(!ctype_alnum(str_replace(array('-', '_'), '', $action))) {
|
||||
error('Error: Action contains illegal characters.');
|
||||
}
|
||||
else if(file_exists(PAGES . 'guilds/' . $action . '.php')) {
|
||||
require(PAGES . 'guilds/' . $action . '.php');
|
||||
require PAGES . 'guilds/' . $action . '.php';
|
||||
}
|
||||
else {
|
||||
error('This page does not exists.');
|
||||
|
Reference in New Issue
Block a user