mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-42582-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
7f2c374dcd
1 changed files with 2 additions and 2 deletions
|
@ -909,7 +909,7 @@ abstract class condition_info_base {
|
|||
if (!empty($information)) {
|
||||
$li = strpos($information, '<li>', 4);
|
||||
if ($li === false) {
|
||||
$information = preg_replace('~^<li>(.*)</li>$~', '$1', $information);
|
||||
$information = preg_replace('~^\s*<li>(.*)</li>\s*$~s', '$1', $information);
|
||||
} else {
|
||||
$information = html_writer::tag('ul', $information);
|
||||
}
|
||||
|
@ -1106,7 +1106,7 @@ abstract class condition_info_base {
|
|||
if (!empty($information)) {
|
||||
$li = strpos($information, '<li>', 4);
|
||||
if ($li === false) {
|
||||
$information = preg_replace('~^<li>(.*)</li>$~', '$1', $information);
|
||||
$information = preg_replace('~^\s*<li>(.*)</li>\s*$~s', '$1', $information);
|
||||
} else {
|
||||
$information = html_writer::tag('ul', $information);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue