fix bug
This commit is contained in:
parent
98cb84acba
commit
15f486205d
@ -328,12 +328,14 @@ class AjaxController extends AbstractController
|
||||
$verse = Bible::findVerse($passage);
|
||||
$verseArr = [];
|
||||
|
||||
if (is_bool($verse)) {
|
||||
if (is_bool($verse) && $verse === false) {
|
||||
$verseArr[0] = 1;
|
||||
$verseArr[1] = 176;
|
||||
} elseif (is_int($verse)) {
|
||||
$verseArr[0] = $verse;
|
||||
$verseArr[1] = $verse;
|
||||
} else {
|
||||
$verseArr = $verse;
|
||||
}
|
||||
|
||||
$ret = $emi->getRepository(Bible::class)->findRange($bible, $verseArr);
|
||||
|
Loading…
Reference in New Issue
Block a user