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

bugs at horde.org bugs at horde.org
Thu Jan 15 15:32:10 UTC 2009


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

Ticket URL: http://bugs.horde.org/ticket/7854
------------------------------------------------------------------------------
  Ticket             | 7854
  Created By         | thomas at gelf.net
  Summary            | Error in DIMP's _getIdxString()-function
  Queue              | DIMP
  Version            | 1.1.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


thomas at gelf.net (2009-01-15 10:32) 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

Best regards,
Thomas Gelf







More information about the bugs mailing list