Skip to content
  • Andrew Lyons's avatar
    MDL-70137 cache: Use sensible default when reading MUC config · b26a5e5e
    Andrew Lyons authored and victor's avatar victor committed
    When we read the MUC configuration, a file which exists but is empty
    will not error, but will cause all configuration to be empty.
    
    We already perform an {{is_array()}} check on the {{$configuration}}
    variable, but the default value for {{$configuration}} is an empty
    array. In the case where the file exists, but is empty, no errors occur
    when the file is loaded, and the initial {{$configuration}} value is
    not overwritten, leading to the file being replaced with an empty copy.
    b26a5e5e