4
0

update 2023-07-31 07:51:06

This commit is contained in:
Robot 2023-07-31 07:51:06 +02:00
parent b9d1657195
commit 861f56ba6d
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
6 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

@ -167,7 +167,7 @@ abstract class Watcher
{ {
if ($_value->{$match['key']} === $match['value']) if ($_value->{$match['key']} === $match['value'])
{ {
return $value; return $_value;
} }
} }

View File

@ -140,7 +140,7 @@
{ {
if ($_value->{$match['key']} === $match['value']) if ($_value->{$match['key']} === $match['value'])
{ {
return $value; return $_value;
} }
} }

View File

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

View File

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