diff --git a/classes/incident.php b/classes/incident.php index 9c86f6e..2eb9acb 100644 --- a/classes/incident.php +++ b/classes/incident.php @@ -78,9 +78,13 @@ class Incident implements JsonSerializable * for char limits. * @return void */ - public static function add($user_id = $_SESSION['user'],$type = $_POST['type'],$title = strip_tags($_POST['title']),$text = strip_tags($_POST['text'], '
')) + public static function add() { global $mysqli, $message; + $user_id = $_SESSION['user']; + $type = $_POST['type']; + $title = strip_tags($_POST['title']); + $text = strip_tags($_POST['text'], '
') if (strlen($title)==0) {