Skip to content

Commit

Permalink
Merge branch 'empty-checks' of https://github.com/danpoltawski/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 4, 2016
2 parents 5736b0e + 038dc23 commit aef4de1
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 aef4de1

Please sign in to comment.