Skip to content

Commit

Permalink
MDL-55059 output: fix empty checks
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Oct 4, 2016
1 parent d6c8732 commit 038dc23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ public function standard_head_html() {
}

// 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() . '"/>';
}
Expand Down

0 comments on commit 038dc23

Please sign in to comment.