[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[15015] trunk/squirrelmail/functions/ page_header.php
From:       pdontthink--- via squirrelmail-cvs <squirrelmail-cvs () lists ! sourceforge ! net>
Date:       2024-03-27 10:20:28
Message-ID: 1711534828.706270.17985 () sfp-scm-1 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]

Revision: 15015
          http://sourceforge.net/p/squirrelmail/code/15015
Author:   pdontthink
Date:     2024-03-27 10:20:28 +0000 (Wed, 27 Mar 2024)
Log Message:
-----------
Fix PHP warning

Modified Paths:
--------------
    trunk/squirrelmail/functions/page_header.php

Modified: trunk/squirrelmail/functions/page_header.php
===================================================================
--- trunk/squirrelmail/functions/page_header.php	2024-03-27 10:16:56 UTC (rev 15014)
+++ trunk/squirrelmail/functions/page_header.php	2024-03-27 10:20:28 UTC (rev 15015)
@@ -265,7 +265,7 @@
         $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 @@
     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')

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.



-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic