MDL-55059 output: fix empty checks

This commit is contained in:
Dan Poltawski 2016-10-04 15:07:57 +01:00
parent d6c8732844
commit 038dc234f6

View File

@ -541,9 +541,9 @@ class core_renderer extends renderer_base {
}
// Smart App Banners meta tag is only displayed if mobile services are enabled and configured.
if ($CFG->enablemobilewebservice) {
if (!empty($CFG->enablemobilewebservice)) {
$mobilesettings = get_config('tool_mobile');
if ($mobilesettings->enablesmartappbanners and $mobilesettings->iosappid) {
if (!empty($mobilesettings->enablesmartappbanners) and !empty($mobilesettings->iosappid)) {
$output .= '<meta name="apple-itunes-app" content="app-id=' . s($mobilesettings->iosappid) . ', ';
$output .= 'app-argument=' . $this->page->url->out() . '"/>';
}