Skip to content

Commit

Permalink
inc/html: fix php notice about html_weburl when type is canvas
Browse files Browse the repository at this point in the history
Fixes:
> PHP Notice:  Undefined variable: html_weburl in inc/html.inc.php on line 131

Mentioned in #132
Closes: #141
  • Loading branch information
pommi committed Dec 9, 2016
1 parent 99ede4b commit 6ff9188
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/html.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function html_start() {

function html_end($footer = false) {
global $CONFIG;
$html_weburl = htmlentities($CONFIG['weburl']);

if ($footer) {
$git = '/usr/bin/git';
Expand All @@ -111,8 +112,6 @@ function html_end($footer = false) {
$version = 'v'.$version[0];
}

$html_weburl = htmlentities($CONFIG['weburl']);

echo <<<EOT
</div>
<div id="footer">
Expand Down

0 comments on commit 6ff9188

Please sign in to comment.