[ticket/12435] Update the comment

PHPBB3-12435
This commit is contained in:
Tristan Darricau 2014-05-14 02:32:12 +02:00
parent cb97c26e88
commit 7af785f903

View file

@ -760,10 +760,12 @@ class manager
*/ */
public function purge_notifications($notification_type_name) public function purge_notifications($notification_type_name)
{ {
// If the notification was never used, it was never put in the database and so its id was never cached. // If a notification is never used, its type will not be added to the database
// If this notification was added by an extension, this one will call purge_notification in the purge step, // nor its id cached. If this method is called by an extension during the
// and get_notification_type_id() will throw an exception. // purge step, and that extension never used its notifications,
// The notification was never used, thus we can silently drop the exception. // get_notification_type_id() will throw an exception. However,
// because no notification type was added to the database,
// there is nothing to delete, so we can silently drop the exception.
try try
{ {
$notification_type_id = $this->get_notification_type_id($notification_type_name); $notification_type_id = $this->get_notification_type_id($notification_type_name);