Fix bug when page number isn't in the image list
This commit is contained in:
parent
083588a3b5
commit
6291b3ed76
|
|
@ -33,7 +33,11 @@ while ($s = $req1->fetch_assoc()) {
|
|||
} else {
|
||||
$p = $s['page'];
|
||||
}
|
||||
$c_p[] = array($s['source'], $s['page'], $p, intval($s['extent']), intval($s['sequence']));
|
||||
if($p) {
|
||||
$c_p[] = array($s['source'], $s['page'], $p, intval($s['extent']), intval($s['sequence']));
|
||||
} else {
|
||||
$c_p[] = $c_s;
|
||||
}
|
||||
} else {
|
||||
$c_p[] = $c_s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue