Skip to content

Commit

Permalink
Patch preference error - #293
Browse files Browse the repository at this point in the history
  • Loading branch information
extragornax committed Jun 15, 2017
1 parent 82f5cef commit 5ce1bff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/preferences.php
Expand Up @@ -155,9 +155,8 @@ function list_themes($path)
{
if ($handler = opendir($path)) {
while ($folders = readdir($handler)) {
if (is_file($path.'/'.$folders.'/list.html')) {
if (is_dir($path.'/'.$folders) && is_file($path.'/'.$folders.'/list.html'))
$themes[$folders] = $folders;
}
}
closedir($handler);
}
Expand Down

0 comments on commit 5ce1bff

Please sign in to comment.