mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
FIX Do not attempt to search non-existent classes
This commit is contained in:
parent
54bd44a03b
commit
e69cad3de3
@ -1444,6 +1444,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);
|
||||
|
Loading…
Reference in New Issue
Block a user