From: pdontthink Date: Wed, 27 Mar 2024 10:20:28 +0000 (+0000) Subject: Fix PHP warning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de3ef7e66108588c9b7b6806eb5e8899a851bd2b;p=squirrelmail.git Fix PHP warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@15015 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index 8781499f..48b34aca 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -265,7 +265,7 @@ function displayPageHeader($color, $mailbox='', $sHeaderJs='', $sOnload = '') { $data_dir, $username; if (empty($sOnload)) { - if (strpos($action, 'reply') !== FALSE && $reply_focus) { + if (!empty($action) && strpos($action, 'reply') !== FALSE && $reply_focus) { if ($reply_focus == 'select') $sOnload = 'checkForm(\'select\');'; else if ($reply_focus == 'focus') @@ -374,7 +374,7 @@ function compose_Header($color, $mailbox, $sHeaderJs='', $sOnload = '') { global $reply_focus, $action, $oTemplate; if (empty($sOnload)) { - if (strpos($action, 'reply') !== FALSE && $reply_focus) { + if (!empty($action) && strpos($action, 'reply') !== FALSE && $reply_focus) { if ($reply_focus == 'select') $sOnload = 'checkForm(\'select\');'; else if ($reply_focus == 'focus')