From e2b331a039dfcbff0e87b1f697d5384fb56f4519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Fri, 2 Oct 2020 08:58:07 +0300 Subject: [PATCH] Fixback --- classes/incident.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {