diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-05-14 02:32:12 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-14 02:32:12 +0200 |
| commit | 7af785f903c4d939b05b291a7beef37c33d3b825 (patch) | |
| tree | 95e4dacbd172ac03f930ef382a36f39321627f91 /phpBB/phpbb/notification/manager.php | |
| parent | cb97c26e884ba7c78afad01e6c05d32b9df6fde5 (diff) | |
| download | forums-7af785f903c4d939b05b291a7beef37c33d3b825.tar forums-7af785f903c4d939b05b291a7beef37c33d3b825.tar.gz forums-7af785f903c4d939b05b291a7beef37c33d3b825.tar.bz2 forums-7af785f903c4d939b05b291a7beef37c33d3b825.tar.xz forums-7af785f903c4d939b05b291a7beef37c33d3b825.zip | |
[ticket/12435] Update the comment
PHPBB3-12435
Diffstat (limited to 'phpBB/phpbb/notification/manager.php')
| -rw-r--r-- | phpBB/phpbb/notification/manager.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index 33f0ae986e..2f7d846d75 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -760,10 +760,12 @@ class manager */ 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 this notification was added by an extension, this one will call purge_notification in the purge step, - // and get_notification_type_id() will throw an exception. - // The notification was never used, thus we can silently drop the exception. + // If a notification is never used, its type will not be added to the database + // nor its id cached. If this method is called by an extension during the + // purge step, and that extension never used its notifications, + // 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 { $notification_type_id = $this->get_notification_type_id($notification_type_name); |
