From 21b38455a4911c1c7baac0fc6e28ca4e97f29911 Mon Sep 17 00:00:00 2001 From: Justin Hunt Date: Tue, 8 May 2018 14:11:51 +0900 Subject: [PATCH] more tweaks for unset ->url --- filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.php b/filter.php index 85f381e..617e786 100644 --- a/filter.php +++ b/filter.php @@ -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:';