mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-06-14 19:22:26 -04:00
Fixback
This commit is contained in:
parent
671004579c
commit
e2b331a039
@ -78,9 +78,13 @@ class Incident implements JsonSerializable
|
|||||||
* for char limits.
|
* for char limits.
|
||||||
* @return void
|
* @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;
|
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)
|
if (strlen($title)==0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user