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
46a310fb
Commit
46a310fb
authored
Jun 10, 2016
by
Dominik Hebeler
Browse files
Fixed a Bug where "Witch" returned an empty result
parent
2d810c68
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Witch.php
View file @
46a310fb
...
...
@@ -15,15 +15,14 @@ class Witch extends Searchengine
public
function
loadResults
(
$result
)
{
$result
=
html_entity_decode
(
trim
(
utf8_encode
(
$result
)));
$results
=
explode
(
"
\n
"
,
$result
);
array_shift
(
$results
);
foreach
(
$results
as
$res
)
{
$res
=
explode
(
";"
,
$res
);
if
(
sizeof
(
$res
)
!==
4
)
if
(
sizeof
(
$res
)
!==
4
||
$res
[
3
]
===
"'Kein Ergebnis'"
)
{
continue
;
}
...
...
Write
Preview
Markdown
is supported
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