[FIX] Defaults via Smarty for empty settings
This commit is contained in:
parent
91d43a1b7f
commit
253aa26f97
@ -16,7 +16,9 @@ class Setting extends Base {
|
|||||||
if ($this->checkStmt($stmt) && $stmt->bind_param('s', $name) && $stmt->execute() && $result = $stmt->get_result())
|
if ($this->checkStmt($stmt) && $stmt->bind_param('s', $name) && $stmt->execute() && $result = $stmt->get_result())
|
||||||
if ($result->num_rows > 0)
|
if ($result->num_rows > 0)
|
||||||
return $result->fetch_object()->value;
|
return $result->fetch_object()->value;
|
||||||
return $this->sqlError();
|
// Log error but return empty string
|
||||||
|
$this->sqlError();
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user