From 671004579c1525fdb79e8bff84b4384f33865ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Thu, 1 Oct 2020 16:35:32 +0300 Subject: [PATCH] Update incident.php --- classes/incident.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/classes/incident.php b/classes/incident.php index 0385754..9c86f6e 100644 --- a/classes/incident.php +++ b/classes/incident.php @@ -78,13 +78,9 @@ class Incident implements JsonSerializable * for char limits. * @return void */ - public static function add() + public static function add($user_id = $_SESSION['user'],$type = $_POST['type'],$title = strip_tags($_POST['title']),$text = strip_tags($_POST['text'], '
')) { global $mysqli, $message; - $user_id = $_SESSION['user']; - $type = $_POST['type']; - $title = strip_tags($_POST['title']); - $text = strip_tags($_POST['text'], '
'); if (strlen($title)==0) {