API page: http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/func...
Describe the problem you have found:
The return value can also be an empty array, when no parents are found. This is not described in the Return value. Users with smart IDEs will benefit from these kind of correct informations.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | taxonomy-parents-1196112-2.patch | 603 bytes | drupal_was_my_past |
Comments
Comment #1
jhodgdonThanks for reporting! We fix in 8.x then port back to 7.x
Comment #2
drupal_was_my_past commentedPatch attached that adds documentions that specifies that taxonomy_get_parents() returns an empty array if no parents are found.
Comment #3
jhodgdonLooks good, thanks!
Comment #4
dries commentedCommitted to 7.x and 8.x. Thanks.