@ core/db/models/notification.php: a logical bug fixed