X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=plekit%2Fphp%2Fdetails.php;fp=plekit%2Fphp%2Fdetails.php;h=b6e03c48b2481890b206a064a95c924e4e5ab94a;hp=a3705a63a2608f8ebf5968d6a772b308369b927e;hb=a2b51b3f49397e991376eb4fe738177d7f588e74;hpb=087def4e200130285f9cfe7b47106afd8fe5801b diff --git a/plekit/php/details.php b/plekit/php/details.php index a3705a6..b6e03c4 100644 --- a/plekit/php/details.php +++ b/plekit/php/details.php @@ -109,8 +109,8 @@ class PlekitDetails { if (!$options) $options = array(); if ( ! ($this->editable && $form_varname) ) { // xxx hack: if input_type is select, look for the 'value' option to display current value - if ($options['input_type'] == "select") - $value=$options['value']; + if (get_array($options, 'input_type') == "select") + $value=$options['value']; return "$title$value"; } else { // use options if provided, otherwise the latest set_ function