[ghelda-devel] [74] Correct another WARNING bug in xHTML.class.php

[ Thread Index | Date Index | More lists.tuxfamily.org/ghelda-devel Archives ]


Revision: 74
Author:   odyx
Date:     2009-07-25 01:12:28 +0200 (Sat, 25 Jul 2009)

Log Message:
-----------
Correct another WARNING bug in xHTML.class.php

Modified Paths:
--------------
    trunk/inc/outputs/xHTML.class.php


Modified: trunk/inc/outputs/xHTML.class.php
===================================================================
--- trunk/inc/outputs/xHTML.class.php	2009-07-24 23:12:26 UTC (rev 73)
+++ trunk/inc/outputs/xHTML.class.php	2009-07-24 23:12:28 UTC (rev 74)
@@ -682,8 +682,7 @@
                 foreach($options as $value => $name) {
                     // Set the value iff the value is different
                     $attributes = $value !== $name ? array('value' => $value) : array();
-        
-                    if(!is_null($options_selected) && in_array($value,$options_selected)) {
+                    if(!is_null($options_selected) && $options_selected != -1 && in_array($value,$options_selected)) {
                         $attributes['selected'] = 'selected';
                     }
                     $optionsInTxt .= $this->tag('option', is_array($name) && array_key_exists('name',$name) ? $name['name'] : $name,$attributes); // Add "true" at the end for easier formatting


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/