Its work on the `activitypage.php?mode=notify` page, but the `request_var('mode', false)` looks wrong, but its worked.
For 'notify' you need normally `request_var('mode', '')`