From cc3df7a2acdbe12ed4feb3431b455263575aa2ed Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Wed, 5 Dec 2007 08:26:44 +0000 Subject: [PATCH] KTS-2752 "Folder Usage plugin must check the existance of the folder it is scanning" Fixed. --- plugins/housekeeper/FolderUsageDashlet.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- libgit2 0.21.4