Skip to content
Snippets Groups Projects
Commit 34299e9d authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '811-fehlerbehandlung-fur-nicht-ladbare-quicktips-verbessern' into 'development'

Resolve "Fehlerbehandlung für nicht ladbare Quicktips verbessern"

Closes #811

See merge request !1325
parents 19569aea 073070b3
Branches
No related tags found
1 merge request!1325Resolve "Fehlerbehandlung für nicht ladbare Quicktips verbessern"
......@@ -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 = [];
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment