Merge branch 'MDL-69758-master' of https://github.com/sammarshallou/moodle into master
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 1 Oct 2020 21:44:05 +0000 (23:44 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 1 Oct 2020 21:44:05 +0000 (23:44 +0200)
mod/url/lib.php

index 815360d..b805029 100644 (file)
@@ -274,7 +274,7 @@ function url_export_contents($cm, $baseurl) {
     $fullurl = str_replace('&amp;', '&', url_get_full_url($urlrecord, $cm, $course));
     $isurl = clean_param($fullurl, PARAM_URL);
     if (empty($isurl)) {
-        return null;
+        return [];
     }
 
     $url = array();