From: <pdo...@us...> - 2024-03-27 10:23:04
|
Revision: 15016 http://sourceforge.net/p/squirrelmail/code/15016 Author: pdontthink Date: 2024-03-27 10:23:03 +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 10:20:28 UTC (rev 15015) +++ branches/SM-1_4-STABLE/squirrelmail/functions/page_header.php 2024-03-27 10:23:03 UTC (rev 15016) @@ -458,7 +458,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();}\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |