<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Error in DIMP&#039;s _getIdxString()-function</title> 
  <pubDate>Fri, 10 Apr 2026 00:42:20 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7854</link> 
  <atom:link rel="self" type="application/rss+xml" title="Error in DIMP&#039;s _getIdxString()-function" href="https://bugs.horde.org/ticket/7854/rss" /> 
  <description>Error in DIMP&#039;s _getIdxString()-function</description> 
 
   
   
  <item> 
   <title>As I&#039;m in a hurry right now I wasn&#039;t able to immediately fig</title> 
   <description>As I&#039;m in a hurry right now I wasn&#039;t able to immediately figure

out what this function is used for:



&gt; function _getIdxString($indices)

&gt; {

&gt;     $i = each($indices);

&gt;     return reset($i[&#039;value&#039;]) . IMP_IDX_SEP . $i[&#039;key&#039;];

&gt; }



However if you look my log line and then at the code, the error

is obvious - there is no $key:



&gt; PHP Warning:  reset(): Passed variable is not an array or object

&gt; in dimp/imp.php on line 112

&gt; PHP Notice:  Undefined index:  key in dimp/imp.php on line 112



Best regards,

Thomas Gelf

</description> 
   <pubDate>Thu, 15 Jan 2009 15:32:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51755</link> 
  </item> 
   
  <item> 
   <title>This then leads to...



&gt; PHP Fatal error:  Call to undefin</title> 
   <description>This then leads to...



&gt; PHP Fatal error:  Call to undefined method PEAR_Error::getHeaderOb()

&gt; in imp/lib/Compose.php



...in the forwardMessage function, it doesn&#039;t expect $imp_contents to be

a PEAR_Error.</description> 
   <pubDate>Thu, 15 Jan 2009 15:37:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51756</link> 
  </item> 
   
  <item> 
   <title>&gt; As I&#039;m in a hurry right now I wasn&#039;t able to immediately f</title> 
   <description>&gt; As I&#039;m in a hurry right now I wasn&#039;t able to immediately figure

&gt; out what this function is used for:

&gt;

&gt;&gt; function _getIdxString($indices)

&gt;&gt; {

&gt;&gt;     $i = each($indices);

&gt;&gt;     return reset($i[&#039;value&#039;]) . IMP_IDX_SEP . $i[&#039;key&#039;];

&gt;&gt; }

&gt;

&gt; However if you look my log line and then at the code, the error

&gt; is obvious - there is no $key:

&gt;

&gt;&gt; PHP Warning:  reset(): Passed variable is not an array or object

&gt;&gt; in dimp/imp.php on line 112

&gt;&gt; PHP Notice:  Undefined index:  key in dimp/imp.php on line 112



So what is the value of $indices?</description> 
   <pubDate>Thu, 15 Jan 2009 19:05:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51760</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; function _getIdxString($indices) {

&gt;&gt;&gt;     $i = each($i</title> 
   <description>&gt;&gt;&gt; function _getIdxString($indices) {

&gt;&gt;&gt;     $i = each($indices);

&gt;&gt;&gt;     return reset($i[&#039;value&#039;]) . IMP_IDX_SEP . $i[&#039;key&#039;];



&gt; So what is the value of $indices?



I don&#039;t know that - and I&#039;ll not have enough time to track this down

before monday. But who cares, just have a look at the posted code

and tell me the value of $key - the error is to be found there!

</description> 
   <pubDate>Fri, 16 Jan 2009 08:54:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51767</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t know that - and I&#039;ll not have enough time to track</title> 
   <description>&gt; I don&#039;t know that - and I&#039;ll not have enough time to track this down

&gt; before monday. But who cares, just have a look at the posted code

&gt; and tell me the value of $key - the error is to be found there!



Except that is *is* there for the rest of us. That&#039;s why you have to help us reproduce the problem by supplying the actual value, to help us figure out what&#039;s going on.</description> 
   <pubDate>Fri, 16 Jan 2009 18:35:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51780</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I don&#039;t know that - and I&#039;ll not have enough time to trac</title> 
   <description>&gt;&gt; I don&#039;t know that - and I&#039;ll not have enough time to track this down

&gt;&gt; before monday. But who cares, just have a look at the posted code

&gt;&gt; and tell me the value of $key - the error is to be found there!

&gt;

&gt; Except that is *is* there for the rest of us. That&#039;s why you have to 

&gt; help us reproduce the problem by supplying the actual value, to help 

&gt; us figure out what&#039;s going on.



Sorry, I misread the function - I really need some sleep. I&#039;ll do some

tests on monday and let you know!

</description> 
   <pubDate>Fri, 16 Jan 2009 21:15:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7854#t51788</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
