fix doc directory reading bug

This commit is contained in:
John Bintz 2009-11-19 21:48:15 -05:00
parent d8b6c0f859
commit b25f03389b

View File

@ -171,6 +171,7 @@ class ComicPressAdmin {
$all_docs = array(); $all_docs = array();
if (($dh = opendir($path)) !== false) { if (($dh = opendir($path)) !== false) {
while (($file = readdir($dh)) !== false) { while (($file = readdir($dh)) !== false) {
if (is_file($path . '/' . $file)) {
$content = file($path . '/' . $file); $content = file($path . '/' . $file);
$title = false; $title = false;
foreach ($content as $line) { foreach ($content as $line) {
@ -186,6 +187,7 @@ class ComicPressAdmin {
} }
} }
} }
}
closedir($dh); closedir($dh);
} }