mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-55059 output: fix empty checks
This commit is contained in:
parent
d6c8732844
commit
038dc234f6
@ -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() . '"/>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user