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