From: toyomoyo Date: Thu, 13 Apr 2006 01:32:10 +0000 (+0000) Subject: fix for #5173 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3e8398408f8f7fe599d04ed9640092f07ab03706;p=moodle.git fix for #5173 --- diff --git a/blog/tags.html b/blog/tags.html index 611758c115..c664b83577 100755 --- a/blog/tags.html +++ b/blog/tags.html @@ -26,9 +26,10 @@ print_heading(get_string('tagmanagement')); prefix.'tags WHERE type=\'official\' ORDER by text ASC'); - foreach ($otags as $otag) { - echo '
'.$otag->text; + if ($otags = get_records_sql('SELECT * from '.$CFG->prefix.'tags WHERE type=\'official\' ORDER by text ASC')) { + foreach ($otags as $otag) { + echo '
'.$otag->text; + } } } ?>