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:11:29 +00:00
parent eccb47c582
commit b978aa102e

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);