|
From: <pdo...@us...> - 2025-04-20 06:58:54
|
Revision: 15039
http://sourceforge.net/p/squirrelmail/code/15039
Author: pdontthink
Date: 2025-04-20 06:58:38 +0000 (Sun, 20 Apr 2025)
Log Message:
-----------
Fix what was a NULL hook name
Modified Paths:
--------------
trunk/squirrelmail/plugins/filters/filters.php
Modified: trunk/squirrelmail/plugins/filters/filters.php
===================================================================
--- trunk/squirrelmail/plugins/filters/filters.php 2025-04-02 04:06:34 UTC (rev 15038)
+++ trunk/squirrelmail/plugins/filters/filters.php 2025-04-20 06:58:38 UTC (rev 15039)
@@ -187,7 +187,8 @@
/**
* Starts the filtering process
* @param array $hook_args (since 1.5.2) do hook arguments. Is used to check
- * hook name, array key = 0.
+ * hook name, array key = 0 (UPDATE: but right_main_after_header hook uses
+ * boolean_hook_function which doesn't pass the hook name)
* @access private
*/
function start_filters($hook_args) {
@@ -216,7 +217,7 @@
* check hook that calls filtering. If filters are called by right_main_after_header,
* do filtering only when we are in INBOX folder.
*/
- if ($hook_args[0]=='right_main_after_header' &&
+ if (PAGE_NAME == right_main &&
(sqgetGlobalVar('mailbox',$mailbox,SQ_FORM) && $mailbox!='INBOX')) {
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|