This commit is contained in:
Yiğit Kerem Oktay
2020-10-02 08:58:07 +03:00
committed by GitHub
parent 671004579c
commit e2b331a039
+5 -1
View File
@@ -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'], '<br>'))
public static function add()
{
global $mysqli, $message;
$user_id = $_SESSION['user'];
$type = $_POST['type'];
$title = strip_tags($_POST['title']);
$text = strip_tags($_POST['text'], '<br>')
if (strlen($title)==0)
{