Skip to content

Commit dc4be1a

Browse files
authored
Merge pull request #319 from phanan-forks/fix-318
fix: broken functionality if soft_delete is set to true
2 parents 07607a1 + 7fe1571 commit dc4be1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Engines/TNTSearchEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function handleSoftDeletes($builder, $model)
352352
*
353353
* When no __soft_deleted statement is given return all entries
354354
*/
355-
if (!in_array('__soft_deleted', $this->builder->wheres)) {
355+
if (!array_key_exists('__soft_deleted', $this->builder->wheres)) {
356356
return $builder->withTrashed();
357357
}
358358

0 commit comments

Comments
 (0)