Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
7c06e27e7f
7 changed files with 35 additions and 54 deletions
|
@ -61,7 +61,13 @@ class Application_Model_Preference
|
|||
." VALUES ($id, '$key', $value)";
|
||||
}
|
||||
}
|
||||
return $con->exec($sql);
|
||||
try {
|
||||
$con->exec($sql);
|
||||
} catch (Exception $e){
|
||||
Logging::log("Could not connect to database.");
|
||||
header('HTTP/1.0 503 Service Unavailable');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetValue($key, $isUserValue = false){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue