MDL-34873 fix multiple E_STRICT tag related problems

This commit is contained in:
Petr Škoda 2012-08-19 10:17:12 +02:00
parent c92d6f417c
commit 7c2cc9c85e
4 changed files with 9 additions and 4 deletions

View file

@ -261,7 +261,8 @@ function tag_print_search_results($query, $page, $perpage, $return=false) {
global $CFG, $USER, $OUTPUT;
$query = array_shift(tag_normalize($query, TAG_CASE_ORIGINAL));
$norm = tag_normalize($query, TAG_CASE_ORIGINAL);
$query = array_shift($norm);
$count = sizeof(tag_find_tags($query, false));
$tags = array();