[FIX] Defaults via Smarty for empty settings

This commit is contained in:
Sebastian Grewe 2013-11-11 09:43:48 +01:00
parent 91d43a1b7f
commit 253aa26f97

View File

@ -16,7 +16,9 @@ class Setting extends Base {
if ($this->checkStmt($stmt) && $stmt->bind_param('s', $name) && $stmt->execute() && $result = $stmt->get_result())
if ($result->num_rows > 0)
return $result->fetch_object()->value;
return $this->sqlError();
// Log error but return empty string
$this->sqlError();
return "";
}
/**