fix warning because video does not exist in requested language, falling back to "en"

This commit is contained in:
Ralf Becker 2015-10-27 17:13:01 +00:00
parent 625cc51c59
commit 5143a0a7b9

View File

@ -68,7 +68,7 @@ class home_tutorial_ui
'apps' => $appName,
'0' => ''
);
foreach ($tutorials[$appName][$lang] as $v)
foreach (isset($tutorials[$appName][$lang]) ? $tutorials[$appName][$lang] : $tutorials[$appName]['en'] as $v)
{
$v ['onclick'] = 'app.home.tutorial_videoOnClick("'.$v['src'].'")';
array_push($list, $v);