mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-01 21:54:48 -04:00
Re #33 - remove bunch of dead code & fix some bugs
This commit is contained in:
+2
-2
@@ -74,7 +74,7 @@ class Service implements JsonSerializable
|
||||
$stmt = $mysqli->prepare("INSERT INTO services VALUES(NULL,?)");
|
||||
$stmt->bind_param("s", $name);
|
||||
$stmt->execute();
|
||||
$query = $stmt->get_result();
|
||||
$stmt->get_result();
|
||||
header("Location: ".WEB_URL."/admin/?do=settings");
|
||||
}else
|
||||
{
|
||||
@@ -88,7 +88,7 @@ class Service implements JsonSerializable
|
||||
*/
|
||||
public static function delete()
|
||||
{
|
||||
global $user;
|
||||
global $user, $message;
|
||||
if ($user->get_rank()<=1)
|
||||
{
|
||||
global $mysqli;
|
||||
|
||||
Reference in New Issue
Block a user