}
if ($result = $this->con->query($query)) {
- while ($row = $result->fetch_object()) {
- $all[] = $row->id;
+ while ($row = $result->fetch_object()) {
+ $all[] = $row->id;
}
- }
+ }
return $all;
}
$this->changeCharset();
$query = "SELECT * FROM quarantine WHERE mail_id = '$id'";
- if ($result = $this->con->query($query, MYSQLI_USE_RESULT)) {
- $row = $result->fetch_object();
- }
+ if ($result = $this->con->query($query, MYSQLI_USE_RESULT)) {
+ $row = $result->fetch_object();
+ }
return $row;
}