update 2023-07-31 07:51:06
This commit is contained in:
parent
b9d1657195
commit
861f56ba6d
@ -68,7 +68,7 @@ final class Chapter extends Watcher
|
|||||||
$this->verses = $verses;
|
$this->verses = $verses;
|
||||||
|
|
||||||
// set the table
|
// set the table
|
||||||
$this->table = 'book';
|
$this->table = 'chapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -227,7 +227,7 @@ final class Chapter extends Watcher
|
|||||||
foreach ($api->verses as $verse)
|
foreach ($api->verses as $verse)
|
||||||
{
|
{
|
||||||
// check if the verse exist
|
// check if the verse exist
|
||||||
$match['value'] = (int) $verse->verse;
|
$match['value'] = (string) $verse->verse;
|
||||||
if (($object = $this->getTarget($match, $verses)) !== null)
|
if (($object = $this->getTarget($match, $verses)) !== null)
|
||||||
{
|
{
|
||||||
$verse->id = $object->id;
|
$verse->id = $object->id;
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
$this->verses = $verses;
|
$this->verses = $verses;
|
||||||
|
|
||||||
// set the table
|
// set the table
|
||||||
$this->table = 'book';
|
$this->table = 'chapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -198,7 +198,7 @@
|
|||||||
foreach ($api->verses as $verse)
|
foreach ($api->verses as $verse)
|
||||||
{
|
{
|
||||||
// check if the verse exist
|
// check if the verse exist
|
||||||
$match['value'] = (int) $verse->verse;
|
$match['value'] = (string) $verse->verse;
|
||||||
if (($object = $this->getTarget($match, $verses)) !== null)
|
if (($object = $this->getTarget($match, $verses)) !== null)
|
||||||
{
|
{
|
||||||
$verse->id = $object->id;
|
$verse->id = $object->id;
|
||||||
|
@ -167,7 +167,7 @@ abstract class Watcher
|
|||||||
{
|
{
|
||||||
if ($_value->{$match['key']} === $match['value'])
|
if ($_value->{$match['key']} === $match['value'])
|
||||||
{
|
{
|
||||||
return $value;
|
return $_value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
{
|
{
|
||||||
if ($_value->{$match['key']} === $match['value'])
|
if ($_value->{$match['key']} === $match['value'])
|
||||||
{
|
{
|
||||||
return $value;
|
return $_value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ final class Book extends Watcher
|
|||||||
foreach ($books as $book)
|
foreach ($books as $book)
|
||||||
{
|
{
|
||||||
// check if the verse exist
|
// check if the verse exist
|
||||||
$match['value'] = (int) $book->nr;
|
$match['value'] = (string) $book->nr;
|
||||||
if (($object = $this->getTarget($match, $local_books)) !== null)
|
if (($object = $this->getTarget($match, $local_books)) !== null)
|
||||||
{
|
{
|
||||||
$book->id = $object->id;
|
$book->id = $object->id;
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
foreach ($books as $book)
|
foreach ($books as $book)
|
||||||
{
|
{
|
||||||
// check if the verse exist
|
// check if the verse exist
|
||||||
$match['value'] = (int) $book->nr;
|
$match['value'] = (string) $book->nr;
|
||||||
if (($object = $this->getTarget($match, $local_books)) !== null)
|
if (($object = $this->getTarget($match, $local_books)) !== null)
|
||||||
{
|
{
|
||||||
$book->id = $object->id;
|
$book->id = $object->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user