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
073070b3
Commit
073070b3
authored
Oct 04, 2018
by
Karl Hasselbring
Committed by
Dominik Hebeler
Oct 04, 2018
Browse files
Resolve "Fehlerbehandlung für nicht ladbare Quicktips verbessern"
parent
19569aea
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
073070b3
...
...
@@ -92,7 +92,7 @@ class MetaGer
}
# Erstellt aus den gesammelten Ergebnissen den View
public
function
createView
(
$quicktipResults
=
null
)
public
function
createView
(
$quicktipResults
=
[]
)
{
# Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können
$focusPages
=
[];
...
...
app/Models/Quicktips/Quicktips.php
View file @
073070b3
...
...
@@ -65,11 +65,21 @@ class Quicktips
}
}
/**
* Load the current Quicktip results
* 1. Retrieve the raw results
* 2. Parse the results
* Returns an empty array if no results are found
*/
public
function
loadResults
()
{
$resultsRaw
=
$this
->
retrieveResults
(
$this
->
hash
);
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
if
(
$resultsRaw
)
{
$results
=
$this
->
parseResults
(
$resultsRaw
);
return
$results
;
}
else
{
return
[];
}
}
public
function
retrieveResults
(
$hash
)
...
...
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