This commit is contained in:
Ryan Prather 2024-05-15 22:41:51 -04:00
parent 98cb84acba
commit 15f486205d

View File

@ -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);