Merge pull request #838 from TheSerapher/issue-837

[FIX] Defaults via Smarty for empty settings
This commit is contained in:
Sebastian Grewe 2013-11-11 01:03:12 -08:00
commit 708de1c1b8

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 "";
}
/**