Grammar stuff
This commit is contained in:
parent
c9f55f6b3d
commit
84248ac4c1
|
@ -117,12 +117,12 @@ class Item extends BaseObject
|
||||||
'verb', 'object-type', 'object', 'target', 'contact-id'];
|
'verb', 'object-type', 'object', 'target', 'contact-id'];
|
||||||
$item = dba::selectFirst('item', $fields, ['id' => $item_id]);
|
$item = dba::selectFirst('item', $fields, ['id' => $item_id]);
|
||||||
if (!DBM::is_result($item)) {
|
if (!DBM::is_result($item)) {
|
||||||
logger('Item with ID ' . $item_id . " hadn't been found.", LOGGER_DEBUG);
|
logger('Item with ID ' . $item_id . " hasn't been found.", LOGGER_DEBUG);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($item['deleted']) {
|
if ($item['deleted']) {
|
||||||
logger('Item with ID ' . $item_id . ' is already deleted.', LOGGER_DEBUG);
|
logger('Item with ID ' . $item_id . ' has already been deleted.', LOGGER_DEBUG);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ class Item extends BaseObject
|
||||||
Worker::add(['priority' => $priority, 'dont_fork' => true], "Notifier", "drop", intval($item['id']));
|
Worker::add(['priority' => $priority, 'dont_fork' => true], "Notifier", "drop", intval($item['id']));
|
||||||
}
|
}
|
||||||
|
|
||||||
logger('Item with ID ' . $item_id . " had been deleted.", LOGGER_DEBUG);
|
logger('Item with ID ' . $item_id . " has been deleted.", LOGGER_DEBUG);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user