Skip to content
Browse files

MDL-15304, MDL-15526 fixing regression

  • Loading branch information...
1 parent adefec3 commit a5aea142e079e1d6d0182225e1c1c4f0bbadade6 skodak committed Jul 3, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/label/lib.php
View
4 mod/label/lib.php
@@ -9,8 +9,8 @@ function get_label_name($label) {
$textlib = textlib_get_instance();
$name = addslashes(strip_tags(format_string(stripslashes($label->content),true)));
- if ($textlib->strlen($label->name) > LABEL_MAX_NAME_LENGTH) {
- $label->name = $textlib->substr($label->name, 0, LABEL_MAX_NAME_LENGTH)."...";
+ if ($textlib->strlen($name) > LABEL_MAX_NAME_LENGTH) {
+ $name = $textlib->substr($name, 0, LABEL_MAX_NAME_LENGTH)."...";
}
if (empty($name)) {

0 comments on commit a5aea14

Please sign in to comment.
Something went wrong with that request. Please try again.