diff --git a/src/Models/Setting.php b/src/Models/Setting.php index 3b6f4c988..2ba8e69b6 100644 --- a/src/Models/Setting.php +++ b/src/Models/Setting.php @@ -22,7 +22,7 @@ class Setting extends Model // Valore corrispettivo $query = str_replace('query=', '', $this->tipo); if ($query != $this->tipo) { - $data = $database->fetchArray($query); + $data = database()->fetchArray($query); if (!empty($data)) { $value = $data[0]['descrizione']; }