Template Library - Linking Sections
Closed this issue · 2 comments
zanbaldwin commented
Unexpected result when $this->template->link($array);
is called. Only the last key/value pair is used, all others are discarded and not linked.
zanbaldwin commented
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.
zanbaldwin commented
SOLVED:
I am an idiot. I cannot believe that I forgot arrays cannot have two keys the same. Duh.