Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69463

Type cast var as numerical for calculation in theme_boost

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.9.1
    • Themes
    • MOODLE_39_STABLE

      The following line is throwing a PHP notice during an upgrade:

       $scss .= '$font-size-base: ' . (1 / 100 * $theme->settings->fontsize) . "rem !default;\n";
      

       

      PHP Notice: A non well formed numeric value encountered in /moodle/theme/boost/lib.php on line 154
      

      $theme->settings->fontsize should be typecast as a float before the calculation.

            Unassigned Unassigned
            andrewmadden Andrew Madden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.