fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14021] booking: preserve datatype from input form


From: Sigurd Nes
Subject: [Fmsystem-commits] [14021] booking: preserve datatype from input form
Date: Fri, 25 Sep 2015 14:14:50 +0000

Revision: 14021
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14021
Author:   sigurdne
Date:     2015-09-25 14:14:50 +0000 (Fri, 25 Sep 2015)
Log Message:
-----------
booking: preserve datatype from input form

Modified Paths:
--------------
    trunk/booking/inc/class.uicommon.inc.php

Modified: trunk/booking/inc/class.uicommon.inc.php
===================================================================
--- trunk/booking/inc/class.uicommon.inc.php    2015-09-25 13:57:17 UTC (rev 
14020)
+++ trunk/booking/inc/class.uicommon.inc.php    2015-09-25 14:14:50 UTC (rev 
14021)
@@ -21,7 +21,7 @@
                $options = array_merge($default_options, $options);
                $result = array();
 
-               $isIndexed = array_values($keys) === $arr;
+               $isIndexed = array_values($keys) === $keys;
                if($isIndexed)
                {
                        foreach($keys as $write_key)
@@ -40,6 +40,10 @@
                        {
                                switch($type)
                                {
+                                       case 'string':
+                                       default:
+                                               $_type = 'string';
+                                               break;
                                        case 'bool':
                                        case 'boolean':
                                                $_type = 'bool';
@@ -79,9 +83,6 @@
                                        case 'html':
                                                $_type = 'html';
                                                break;
-                                       default:
-                                               $_type = 'string';
-                                               break;
                                }
                                $array_key = 
$options['prefix'].$write_key.$options['suffix'];
                                if(isset($array[$array_key]))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]