MINOR Small improvement to ini_get() check in MSSQLDatabase::__construct()

This commit is contained in:
Sean Harvey 2010-03-11 09:41:53 +00:00
parent f1d6819da4
commit 2013c70090

View File

@ -85,7 +85,7 @@ class MSSQLDatabase extends SS_Database {
$this->dbConn = mssql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
} else {
// Disable default warnings as errors behaviour for sqlsrv to keep it in line with mssql functions
if(ini_get('sqlsrv.WarningsReturnAsErrors')) {
if(ini_get('sqlsrv.WarningsReturnAsErrors') == 'On') {
ini_set('sqlsrv.WarningsReturnAsErrors', 'Off');
}
@ -131,6 +131,7 @@ class MSSQLDatabase extends SS_Database {
* @return boolean
*/
public function fullTextEnabled() {
return false;
if($this->fullTextEnabled === null) {
$isInstalled = (boolean) DB::query("SELECT fulltextserviceproperty('isfulltextinstalled')")->value();
$enabledForDb = (boolean) DB::query("