Catch errors, prep to render them.

This commit is contained in:
James Cole
2019-05-17 06:52:16 +02:00
parent 9a53f17fff
commit 6e9128d894
4 changed files with 31 additions and 13 deletions

View File

@@ -318,7 +318,7 @@ trait RequestInformation
$shownDemo = true;
// both must be array and either must be > 0
if (\count($intro) > 0 || \count($specialIntro) > 0) {
if (count($intro) > 0 || \count($specialIntro) > 0) {
$shownDemo = app('preferences')->get($key, false)->data;
Log::debug(sprintf('Check if user has already seen intro with key "%s". Result is %d', $key, $shownDemo));
}