[dokuwiki] Re: possible bug in parserutils.php patch on the 19th of September...

TNHarris wrote:
> 
> On Fri, 28 Sep 2007 00:39:07 +0200, Anthony.Caetano@xxxxxxxxxxxx said:
> > oh drat, sorry Tom, I made two changes simultaneously...  namely putting 
> > all the metadata via ~~META:...~~ on one line with no new-lines, and now 
> > with more testing i see this is the reason it worked, not the code
> > touched by your patch which i probably screwed up :-/
> 
> Good to hear. Still, that's why it's called "devonly".
> 
> To elaborate, the patch is intended to avoid entries like this:
> ...
>             [date] => Array
>                 (
>                     [0] => 
> ...
> That empty element is useless and could theoretically confuse someone
> further down the road.

Just to let you know, I filed a bug report (fs#1258) against this patch
because it breaks the meta-data generation for new pages where i.e.
"date" is at first empty but not an array which causes the later
array_merge() to fail. However, I couldn`t come up with a solution up to
now to avoid this special scenario without breaking the intented purpose
of your patch.

Best Regards,
    Chi

-- 
Michael Klier

mail:   chi@xxxxxxxxxxx
www:    http://www.chimeric.de
icq:    206179334
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Other related posts: