Re #33 - remove bunch of dead code & fix some bugs

This commit is contained in:
Vojtěch Sajdl
2018-04-20 16:40:12 +02:00
parent 186fd48666
commit f121211a14
5 changed files with 31 additions and 22 deletions
+2 -2
View File
@@ -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;