delete unnecessary ordering in sql statements

This commit is contained in:
2020-07-31 01:05:58 +02:00
parent a2385e8e4c
commit 08df6d64dd
2 changed files with 3 additions and 9 deletions

View File

@ -7,9 +7,6 @@ class Settings extends RequestBase {
$query = "SELECT * from settings";
$result = $this->conn->query($query);
if ($result->num_rows > 1) {
// todo throw error
}
$r = mysqli_fetch_assoc($result);
// booleans need to be set manually
@ -45,9 +42,6 @@ class Settings extends RequestBase {
$query = "SELECT * from settings";
$result = $this->conn->query($query);
if ($result->num_rows > 1) {
// todo throw error
}
$r = mysqli_fetch_assoc($result);
if ($r['password'] != "-1") {