mirror of
https://github.com/vrana/adminer.git
synced 2025-08-24 15:12:51 +02:00
Use connection() instead of $connection
This commit is contained in:
@@ -47,9 +47,8 @@ class AdminerEmailTable {
|
||||
}
|
||||
|
||||
function selectEmailProcess($where, $foreignKeys) {
|
||||
$connection = Adminer\connection();
|
||||
if ($_POST["email_id"]) {
|
||||
$result = $connection->query("SELECT $this->subject, $this->message FROM $this->table WHERE $this->id = " . Adminer\q($_POST["email_id"]));
|
||||
$result = Adminer\connection()->query("SELECT $this->subject, $this->message FROM $this->table WHERE $this->id = " . Adminer\q($_POST["email_id"]));
|
||||
$row = $result->fetch_row();
|
||||
$_POST["email_subject"] = $row[0];
|
||||
$_POST["email_message"] = $row[1];
|
||||
|
Reference in New Issue
Block a user