pdontthink | 9 May 04:57 2012
Picon
Picon

SF.net SVN: squirrelmail:[14324] trunk/squirrelmail/functions/html.php

Revision: 14324
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14324&view=rev
Author:   pdontthink
Date:     2012-05-09 02:57:02 +0000 (Wed, 09 May 2012)
Log Message:
-----------
Fix occasional PHP notice

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

Modified: trunk/squirrelmail/functions/html.php
===================================================================
--- trunk/squirrelmail/functions/html.php	2012-04-30 19:41:12 UTC (rev 14323)
+++ trunk/squirrelmail/functions/html.php	2012-05-09 02:57:02 UTC (rev 14324)
 <at>  <at>  -390,7 +390,7  <at>  <at> 
             $p = explode('=', $p);
             $newpar[$p[0]] = (isset($p[1]) ? $p[1] : '');
             if ($treat_as_array && preg_match('/(.*)\[(\d+)]$/', $p[0], $matches)) {
-               if (!is_array($array_names[$matches[1]])) $array_names[$matches[1]] = array();
+               if (!isset($array_names[$matches[1]])) $array_names[$matches[1]] = array();
                $array_names[$matches[1]][$matches[2]] = $p[1];
             }
         }

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

------------------------------------------------------------------------------
(Continue reading)

pdontthink | 9 May 04:57 2012
Picon
Picon

SF.net SVN: squirrelmail:[14325] branches/SM-1_4-STABLE/squirrelmail/ functions/html.php

Revision: 14325
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14325&view=rev
Author:   pdontthink
Date:     2012-05-09 02:57:53 +0000 (Wed, 09 May 2012)
Log Message:
-----------
Fix occasional PHP notice

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/html.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/html.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/html.php	2012-05-09 02:57:02 UTC (rev 14324)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/html.php	2012-05-09 02:57:53 UTC (rev 14325)
 <at>  <at>  -129,7 +129,7  <at>  <at> 
             $p = explode('=', $p);
             $newpar[$p[0]] = (isset($p[1]) ? $p[1] : '');
             if ($treat_as_array && preg_match('/(.*)\[(\d+)]$/', $p[0], $matches)) {
-               if (!is_array($array_names[$matches[1]])) $array_names[$matches[1]] = array();
+               if (!isset($array_names[$matches[1]])) $array_names[$matches[1]] = array();
                $array_names[$matches[1]][$matches[2]] = $p[1];
             }
         }

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

------------------------------------------------------------------------------
(Continue reading)


Gmane