Commit f1ec6a63 authored by tjhunt's avatar tjhunt
Browse files

flickr and youtube blocks: don't call print_error!

That screws up the entire page the block appears on, when this is just an error local to this block.
parent 7b2b1a91
......@@ -47,7 +47,10 @@ class block_tag_flickr extends block_base {
}
if (empty($tagobject)) {
print_error('tagnotfound');
$this->content = new stdClass;
$this->content->text = '';
$this->content->footer = '';
return $this->content;
}
//include related tags in the photo query ?
......
......@@ -86,7 +86,7 @@ class block_tag_youtube extends block_base {
}
if (empty($tagobject)) {
print_error('tagnotfound');
return '';
}
$querytag = urlencode($tagobject->name);
......@@ -117,7 +117,7 @@ class block_tag_youtube extends block_base {
}
if (empty($tagobject)) {
print_error('tagnotfound');
return '';
}
$querytag = urlencode($tagobject->name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment