That screws up the entire page the block appears on, when this is just an error local to this block.
}
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 ?
}
if (empty($tagobject)) {
- print_error('tagnotfound');
+ return '';
}
$querytag = urlencode($tagobject->name);
}
if (empty($tagobject)) {
- print_error('tagnotfound');
+ return '';
}
$querytag = urlencode($tagobject->name);