diff --git a/src/Controller/AjaxController.php b/src/Controller/AjaxController.php index 22affc5..e1db328 100644 --- a/src/Controller/AjaxController.php +++ b/src/Controller/AjaxController.php @@ -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);