mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 20:13:27 +02:00
* forgot to commit twig templates in last commit
* added some validation in guilds actions if guild has been set to prevent php notices
This commit is contained in:
@@ -11,8 +11,9 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
//set rights in guild
|
||||
$guild_name = urldecode($_REQUEST['guild']);
|
||||
$name = stripslashes($_REQUEST['name']);
|
||||
$guild_name = isset($_REQUEST['guild']) ? urldecode($_REQUEST['guild']) : null;
|
||||
$name = isset($_REQUEST['name']) ? stripslashes($_REQUEST['name']) : null;
|
||||
|
||||
if(!$logged) {
|
||||
$errors[] = 'You are not logged in. You can\'t kick characters.';
|
||||
}
|
||||
|
Reference in New Issue
Block a user