mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-12-17 15:59:07 -05:00
Update incident.php
This commit is contained in:
parent
38fcabdbb4
commit
671004579c
@ -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'], '<br>'))
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user