From: <pdo...@us...> - 2024-03-27 10:16:59
|
Revision: 15014 http://sourceforge.net/p/squirrelmail/code/15014 Author: pdontthink Date: 2024-03-27 10:16:56 +0000 (Wed, 27 Mar 2024) Log Message: ----------- Fix PHP warning Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/page_header.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/page_header.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/page_header.php 2024-03-27 09:52:05 UTC (rev 15013) +++ branches/SM-1_4-STABLE/squirrelmail/functions/page_header.php 2024-03-27 10:16:56 UTC (rev 15014) @@ -261,7 +261,7 @@ "\n if (alreadyFocused) return;\n"; global $action, $reply_focus; - if (strpos($action, 'reply') !== FALSE && $reply_focus) + if (!empty($action) && strpos($action, 'reply') !== FALSE && $reply_focus) { if ($reply_focus == 'select') $js .= "document.forms['compose'].body.select();}\n"; else if ($reply_focus == 'focus') $js .= "document.forms['compose'].body.focus(); cursorToTop(document.forms['compose'].body);}\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |