Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
denise 2012-05-04 15:58:14 -04:00
commit 7c06e27e7f
7 changed files with 35 additions and 54 deletions

View file

@ -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){