This commit is contained in:
Ryan Prather 2024-05-13 22:49:39 -04:00
parent 93264e75ac
commit 0a23b3dae3
2 changed files with 4 additions and 4 deletions

View File

@ -39,13 +39,13 @@ class ReferenceController extends AbstractController
$bible = self::$emi->getRepository(Bible::class)->findRange($bible, [$passage_start, $passage_end]);
$passage = "{$passage_start}-{$passage_end}";
$label = "{$bible[0]->getLabel()} {$bible[0]->getChapter()}:{$passage}";
$label = "{$bible[0]->getLabel()}\n{$bible[0]->getChapter()}:{$passage}";
} elseif (is_int($passage)) {
$bible = self::$emi->getRepository(Bible::class)->findBy(['book' => $book, 'chapter' => $chapter, 'verse' => $passage]);
$label = "{$bible[0]->getLabel()} {$bible[0]->getChapter()}:{$passage}";
$label = "{$bible[0]->getLabel()}\n{$bible[0]->getChapter()}:{$passage}";
} elseif ($passage === false) {
$bible = self::$emi->getRepository(Bible::class)->findBy(['book' => $book, 'chapter' => $chapter]);
$label = "{$bible[0]->getLabel()} {$bible[0]->getChapter()}";
$label = "{$bible[0]->getLabel()}\n{$bible[0]->getChapter()}";
$passage = null;
}