mirror of
https://github.com/friendica/friendica
synced 2025-04-26 10:30:11 +00:00
Fixup Database behaviour
This commit is contained in:
parent
90c99520bb
commit
470ba8b61b
4 changed files with 8 additions and 11 deletions
|
@ -101,7 +101,7 @@ class Database implements ISelectableStorage
|
|||
public function delete(string $reference)
|
||||
{
|
||||
try {
|
||||
if (!$this->dba->delete('storage', ['id' => $reference])) {
|
||||
if (!$this->dba->delete('storage', ['id' => $reference]) || $this->dba->affectedRows() === 0) {
|
||||
throw new ReferenceStorageException(sprintf('Database storage failed to delete %s', $reference));
|
||||
}
|
||||
} catch (Exception $exception) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue