Unverified Commit 56bc6590 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(IconTheme) Make it more robust to problems in index.theme

issue #6155
Showing with 3 additions and 1 deletion
+3 -1
......@@ -116,7 +116,9 @@ class IconTheme
if (isset($datas['Icon Theme']['Directories']) && !empty($datas['Icon Theme']['Directories'])) {
$dirs = preg_split('/,/', $datas['Icon Theme']['Directories']);
foreach ($dirs as $name) {
$this->subdirs[strtolower($datas[$name]['Context'])][$name] = new IconThemeDir($datas[$name]);
if (isset($datas[$name])) {
$this->subdirs[strtolower($datas[$name]['Context'])][$name] = new IconThemeDir($datas[$name]);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment