Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
12 Nov 2010 at 19:47 UTC
Updated:
27 Nov 2010 at 02:10 UTC
Jump to comment: Most recent file
Using $id = reset(entity_extract_ids($type, $entity)); causes a PHP notice/strict error. Proper code is to do list($id) = entity_extract_ids($type, $entity);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 970258-entity-hook-doc-strict-D7.patch | 1.52 KB | dave reid |
Comments
Comment #1
dave reidComment #2
jhodgdonLooks like a reasonable fix to me. Dave also assures me similar problems do not exist in core code (just in these examples; would have been found by the testing bots if in core code).
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.