Skip to content

Commit

Permalink
more tweaks for unset ->url
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Hunt committed May 8, 2018
1 parent 40178e8 commit 21b3845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function filter_generico_callback(array $link){
$require_amd = $conf['template_amd_' . $tempindex] && $CFG->version>=2015051100;

//figure out if this is https or http. We don't want to scare the browser
if(strpos($PAGE->url->out(),'https:')===0){
if(property_exists($PAGE, 'url') && strpos($PAGE->url->out(),'https:')===0){
$scheme='https:';
}else{
$scheme='http:';
Expand Down

0 comments on commit 21b3845

Please sign in to comment.