|
@@ -216,7 +216,7 @@ function start_filters($hook_args) {
|
|
* check hook that calls filtering. If filters are called by right_main_after_header,
|
|
* check hook that calls filtering. If filters are called by right_main_after_header,
|
|
* do filtering only when we are in INBOX folder.
|
|
* do filtering only when we are in INBOX folder.
|
|
*/
|
|
*/
|
|
- if ($hook_args[0]=='right_main_after_header' &&
|
|
|
|
|
|
+ if ($hook_args !== null && $hook_args[0]=='right_main_after_header' &&
|
|
(sqgetGlobalVar('mailbox',$mailbox,SQ_FORM) && $mailbox!='INBOX')) {
|
|
(sqgetGlobalVar('mailbox',$mailbox,SQ_FORM) && $mailbox!='INBOX')) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|