[Tickets #7854] Re: Error in DIMP's _getIdxString()-function

bugs at horde.org bugs at horde.org
Thu Jan 15 19:05:14 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/7854
------------------------------------------------------------------------------
  Ticket             | 7854
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Error in DIMP's _getIdxString()-function
  Queue              | DIMP
  Version            | 1.1.1
  Type               | Bug
-State              | Unconfirmed
+State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2009-01-15 14:05) wrote:

> As I'm in a hurry right now I wasn't able to immediately figure
> out what this function is used for:
>
>> function _getIdxString($indices)
>> {
>>     $i = each($indices);
>>     return reset($i['value']) . IMP_IDX_SEP . $i['key'];
>> }
>
> However if you look my log line and then at the code, the error
> is obvious - there is no $key:
>
>> PHP Warning:  reset(): Passed variable is not an array or object
>> in dimp/imp.php on line 112
>> PHP Notice:  Undefined index:  key in dimp/imp.php on line 112

So what is the value of $indices?






More information about the bugs mailing list