Commit cc3df7a2acdbe12ed4feb3431b455263575aa2ed

Authored by Conrad Vermeulen
1 parent 74b7d7eb

KTS-2752

"Folder Usage plugin must check the existance of the folder it is scanning"
Fixed.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7784 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/housekeeper/FolderUsageDashlet.inc.php
... ... @@ -55,7 +55,7 @@ class FolderUsageDashlet extends KTBaseDashlet
55 55 $files=0;
56 56 $filesize=0;
57 57  
58   - if ($dh = opendir($path))
  58 + if (is_dir($path) && ($dh = opendir($path)))
59 59 {
60 60 while (($file = readdir($dh)) !== false)
61 61 {
... ...