@@ -44,10 +44,10 @@ |
||
| 44 | 44 | $query->exclude('SiteTree_ShowInSearch', 0); |
| 45 | 45 | |
| 46 | 46 | // Add File_ShowInSearch if the File class is in the query |
| 47 | - $classes = array_column($classes, 'class'); |
|
| 48 | - if (in_array('File', $classes)) { |
|
| 49 | - $query->exclude('File_ShowInSearch', 0); |
|
| 50 | - } |
|
| 47 | + $classes = array_column($classes, 'class'); |
|
| 48 | + if (in_array('File', $classes)) { |
|
| 49 | + $query->exclude('File_ShowInSearch', 0); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | 52 | // Artificially lower the amount of results to prevent too high resource usage. |
| 53 | 53 | // on subsequent canView check loop. |