Closed (fixed)
Project:
Patterns
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2009 at 20:51 UTC
Updated:
15 Oct 2009 at 18:50 UTC
Because an empty array is returned on infinite recursion, the line
$result['info'] = $info + $a['info'];
in patterns_get_pattern_details() causes a fatal error because $a will be an empty array.
The attached patch causes the pattern to skip the pattern dependency instead of throwing a fatal error of
PHP Fatal error: Unsupported operand types in sites/all/modules/contrib/patterns/patterns.module on line 1823
| Comment | File | Size | Author |
|---|---|---|---|
| patterns-handle-infinite-recursion.patch | 1018 bytes | andrewlevine |
Comments
Comment #1
vaish commentedPatch committed with minor modification of warning message. Thanks.
Comment #2
vaish commented