-
Bug
-
Resolution: Fixed
-
Minor
-
3.11.3, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
MDL-72626-master -
-
Moppies Kanban
The file lib/rtlcss/RTLCSS.php on line 358 generates a notice when i compile my theme.
== Build theme css ==
PHP Notice: Undefined offset: 1
the issue is that
$value = $parts[1];
but there is no check in the line above to ensure that $parts is an array with 2 or more elements.
suggest changing:
if (!is_object($value) && preg_match('/top|bottom/i', $value)) {
to:
if (!is_object($value) && preg_match('/top|bottom/i', $value) && count($parts)>1) {
- will help resolve
-
MDL-61496 RTL CSS conversion fails if border-radius values only have one length
-
- Closed
-