diff --git a/plugins/housekeeper/FolderUsageDashlet.inc.php b/plugins/housekeeper/FolderUsageDashlet.inc.php index 1e36003..d8644e3 100755 --- a/plugins/housekeeper/FolderUsageDashlet.inc.php +++ b/plugins/housekeeper/FolderUsageDashlet.inc.php @@ -55,7 +55,7 @@ class FolderUsageDashlet extends KTBaseDashlet $files=0; $filesize=0; - if ($dh = opendir($path)) + if (is_dir($path) && ($dh = opendir($path))) { while (($file = readdir($dh)) !== false) {