r1913 + stick with %GPASS% and %GSKIP% delimiters
[racktables] / inc / interface.php
index e63677fc82adcd238bb00b53e2b82479c214ff2c..ca6bfd42a72660751aca62f0a6645aa3bd8c4079 100644 (file)
@@ -541,14 +541,14 @@ function printSelect ($rowList, $select_name, $selected_id = 1)
        $other = array();
        foreach ($rowList as $dict_key => $dict_value)
        {
        $other = array();
        foreach ($rowList as $dict_key => $dict_value)
        {
-               if (strpos ($dict_value, '^') !== FALSE)
+               if (strpos ($dict_value, '%GSKIP%') !== FALSE)
                {
                {
-                       $tmp = explode ('^', $dict_value, 2);
+                       $tmp = explode ('%GSKIP%', $dict_value, 2);
                        $optgroup[$tmp[0]][$dict_key] = $tmp[1];
                }
                        $optgroup[$tmp[0]][$dict_key] = $tmp[1];
                }
-               elseif (strpos ($dict_value, '&') !== FALSE)
+               elseif (strpos ($dict_value, '%GPASS%') !== FALSE)
                {
                {
-                       $tmp = explode ('&', $dict_value, 2);
+                       $tmp = explode ('%GPASS%', $dict_value, 2);
                        $optgroup[$tmp[0]][$dict_key] = $tmp[1];
                }
                else
                        $optgroup[$tmp[0]][$dict_key] = $tmp[1];
                }
                else