[bugs] [Bug 1148] Changed - Horde 3.0-cvs admin module creates "broken" conf.php with empty arrays

bugs at bugs.horde.org bugs at bugs.horde.org
Sun Jan 12 10:09:57 PST 2003


http://bugs.horde.org/show_bug.cgi?id=1148

*** shadow/1148	Sun Jan 12 10:07:56 2003
--- shadow/1148.tmp.31804	Sun Jan 12 10:09:57 2003
***************
*** 28,30 ****
--- 28,53 ----
  the user about htmlentities() expecting a string and not an object as parameter #1.
  
  
+ 
+ ------- Additional Comments From horde at jonuschat.de  01/12/03 10:09 -------
+ As there seems to be no way to attach a patch to this bug I submit it as plain
+ text here:
+ 
+ Index: Config.php
+ ===================================================================
+ RCS file: /repository/horde/lib/Config.php,v
+ retrieving revision 1.16
+ diff -u -r1.16 Config.php
+ --- Config.php	10 Jan 2003 16:17:36 -0000	1.16
+ +++ Config.php	12 Jan 2003 13:51:37 -0000
+ @@ -73,7 +73,7 @@
+                  $type = $configitem['type'];
+                  switch ($type) {
+                  case 'multienum':
+ -                    if (is_array($val)) {
+ +                    if (is_array($val) && !empty($val[0])) {
+                          $arrayval = "'" . implode('\', \'', $val) . "'";
+                      } else {
+                          $arrayval = '';
+ 
+ 


More information about the bugs mailing list