1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-11 15:14:01 +01:00

Bugfix minore

This commit is contained in:
Thomas Zilio 2018-12-21 11:14:13 +01:00
parent 65d3fde2b4
commit c3ed0a6e92

View File

@ -22,7 +22,7 @@ class Setting extends Model
// Valore corrispettivo // Valore corrispettivo
$query = str_replace('query=', '', $this->tipo); $query = str_replace('query=', '', $this->tipo);
if ($query != $this->tipo) { if ($query != $this->tipo) {
$data = $database->fetchArray($query); $data = database()->fetchArray($query);
if (!empty($data)) { if (!empty($data)) {
$value = $data[0]['descrizione']; $value = $data[0]['descrizione'];
} }