Quellcode durchsuchen

where('style','<>','bld')

visuddhinanda vor 2 Jahren
Ursprung
Commit
3f891572c8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/Http/Controllers/SearchPaliWbwController.php

+ 1 - 1
app/Http/Controllers/SearchPaliWbwController.php

@@ -44,7 +44,7 @@ class SearchPaliWbwController extends Controller
             $table = $table->where('style','bld');
             $whereBold = " and style='bld'";
         }else if($request->get('bold')==='off'){
-            $table = $table->whereNot('style','bld');
+            $table = $table->where('style','<>','bld');
             $whereBold = " and style <> 'bld'";
         }
         $placeholderWord = implode(",",array_fill(0, count($keyWords), '?')) ;