Commit c4d3f6be51fcb5551ec60f212c208bbbbe8f215b
1 parent
41d42925
KTS-3044
"MD5 support list should show relative filenames and not absolute filenames" Fixed. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8109 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/util/support.inc.php
| ... | ... | @@ -737,6 +737,10 @@ class SupportUtil |
| 737 | 737 | |
| 738 | 738 | private function get_index_contents($title, $path, $relative = true) |
| 739 | 739 | { |
| 740 | + if (!is_dir($path)) | |
| 741 | + { | |
| 742 | + return ''; | |
| 743 | + } | |
| 740 | 744 | $contents = array(); |
| 741 | 745 | $dh = opendir($path); |
| 742 | 746 | while (($filename = readdir($dh)) !== false) | ... | ... |