FIX Do not attempt to search non-existent classes

This commit is contained in:
Stephen Shkardoon 2015-02-24 12:42:05 +13:00
parent 1fedcfb37e
commit 89436212ce

View File

@ -214,6 +214,9 @@ class MSSQLDatabase extends SS_Database {
// Create one query per each table, $columns not used. We want just the ID and the ClassName of the object from this query.
foreach($tables as $tableName => $columns){
// Don't bother trying to do things if the class doesn't actually exist
if (!class_exists($tableName)) continue;
$baseClass = ClassInfo::baseDataClass($tableName);
$join = $this->fullTextSearchMSSQL($tableName, $keywords);