fix doc directory reading bug
This commit is contained in:
parent
d8b6c0f859
commit
b25f03389b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue