Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
3262ea48
Commit
3262ea48
authored
Nov 30, 2016
by
Dominik Hebeler
Browse files
Haystack und Needle vertauscht
parent
47b55c5e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
3262ea48
...
...
@@ -100,7 +100,7 @@ class MetaGerSearch extends Controller
$searchWords
=
explode
(
' '
,
$q
);
$within
=
false
;
foreach
(
$searchWords
as
$word
){
if
(
stripos
(
$word
,
$result
[
"name"
])
!==
false
){
if
(
stripos
(
$result
[
"name"
]
,
$word
)
!==
false
){
$within
=
true
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment