mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fixing an incorrect concatenate of CSS classes arrays
array + array does not add new items if their numeric keys are the same. This lead to the bug that add_classes() did not work correctly.
This commit is contained in:
parent
d8e761eed2
commit
eeecf5a704
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class moodle_html_component {
|
|||
* @return void
|
||||
*/
|
||||
public function add_classes($classes) {
|
||||
$this->classes += self::clean_classes($classes);
|
||||
$this->classes = array_merge($this->classes, self::clean_classes($classes));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue