4
0
Fork 0

update 2023-07-22 07:43:39

This commit is contained in:
Robot 2023-07-22 07:43:39 +02:00
parent 23415d4813
commit 47d0215d74
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 12 additions and 6 deletions

View File

@ -167,11 +167,14 @@ final class Tagged
}
// make sure the linker has access to delete this tag
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0
&& $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'))
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0)
{
return [
'success' => Text::_('COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REMOVED_FROM_THE_VERSE')
'success' => Text::_('COM_GETBIBLE_THE_TAG_WAS_SUCCESSFULLY_REMOVED_FROM_THE_VERSE'),
'what' => $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'),
'id' => $id,
'guid' => $tag,
'linker' => $linker
];
}

View File

@ -138,11 +138,14 @@
}
// make sure the linker has access to delete this tag
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0
&& $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'))
if (($id = $this->load->value(['linker' => $linker, 'guid' => $tag], 'id', 'tagged_verse')) !== null && $id > 0)
{
return [
'success' => Text::_('The tag was successfully removed from the verse.')
'success' => Text::_('The tag was successfully removed from the verse.'),
'what' => $this->update->value(-2, 'published', $id, 'id', 'tagged_verse'),
'id' => $id,
'guid' => $tag,
'linker' => $linker
];
}