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)
{