mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-19823 Fixed un-handled case of emty array in foreach loop
This commit is contained in:
parent
0fd3556d26
commit
0f097239c4
@ -92,6 +92,10 @@ function tag_set($record_type, $record_id, $tags) {
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($tags)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
foreach($tags as $ordering => $tag) {
|
||||
$tag = trim($tag);
|
||||
if (!$tag) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user