Skip to content

Commit

Permalink
M4: Blog: Tag text size is wrong #627983
Browse files Browse the repository at this point in the history
  • Loading branch information
viettruongq authored and sammarshallou committed Jan 3, 2023
1 parent 6f3e807 commit 403c911
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,13 +1114,13 @@ function oublog_get_tags($oublog, $groupid, $cm, $oubloginstanceid=null, $indivi
$sql = $sql . ' LIMIT ' . $limit;
}
if ($tags = $DB->get_records_sql($sql, $params)) {
$first = array_shift($tags);
$max = $first->count;
array_unshift($tags, $first);
$max = max(array_map(function($tag) {
return $tag->count;
}, $tags));

$last = array_pop($tags);
$min = $last->count;
array_push($tags, $last);
$min = min(array_map(function($tag) {
return $tag->count;
}, $tags));

$delta = $max-$min+0.00000001;

Expand Down

0 comments on commit 403c911

Please sign in to comment.