zanbaldwin/eventing

Template Library - Linking Sections

Closed this issue · 2 comments

Unexpected result when $this->template->link($array); is called. Only the last key/value pair is used, all others are discarded and not linked.

EDIT: When an array is passed to E_template::link() as the only parameter, the first key/value pair is discarded.It is as if array_shift() is performed before func_get_args() returns its value.

SOLVED:

I am an idiot. I cannot believe that I forgot arrays cannot have two keys the same. Duh.