[Tickets #7828] Re: Multiple identities not saving in imp/horde

bugs at horde.org bugs at horde.org
Sun Jan 25 17:38:29 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7828
------------------------------------------------------------------------------
  Ticket             | 7828
  Updated By         | manuel at mausz.at
  Summary            | Multiple identities not saving in imp/horde
  Queue              | IMP
  Version            | HEAD
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


manuel at mausz.at (2009-01-25 12:38) wrote:

Here's a fix for this bug (hopefully without side effects).
Without reset(...) the array entry with index=0 will get lost.

--- horde3/lib/Horde/String.php 2008-12-14 16:43:17.000000000 +0100
+++ /dev/null        2009-01-25 18:34:53.000000000 +0100
@@ -94,6 +94,7 @@

          if (is_array($input)) {
              $tmp = array();
+            reset($input);
              while (list($key, $val) = each($input)) {
                  $tmp[String::_convertCharset($key, $from, $to)] =  
String::convertCharset($val, $from, $to);
              }






More information about the bugs mailing list