fix doc directory reading bug

This commit is contained in:
John Bintz 2009-11-19 21:48:15 -05:00
parent d8b6c0f859
commit b25f03389b
1 changed files with 11 additions and 9 deletions

View File

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