Skip to content

Commit

Permalink
added a check for unset ->url which was killing privacy tools CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Hunt committed May 8, 2018
1 parent c5b8792 commit 40178e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ function filter_generico_callback(array $link){

//we use this to see if its a web service calling this,
//in which case we return the alternate content
$is_webservice = strpos($PAGE->url,$CFG->wwwroot .'/webservice/') === 0;
$is_webservice = false;
if(property_exists($PAGE, 'url')){
$is_webservice = strpos($PAGE->url,$CFG->wwwroot .'/webservice/') === 0;
}


//if we want to ignore the filter (for "how to use generico" or "cut and paste" this style use) we let it go
Expand Down

0 comments on commit 40178e8

Please sign in to comment.