LulububuSoftwareGmbH / boltredirector

Handles 301 redirects in Bolt CMS.
16 stars 8 forks source link

Fix for 'empty groups' in .yml. #2

Closed bobdenotter closed 10 years ago

bobdenotter commented 10 years ago

The default .yml file defines some 'groups', which are left empty. This throws an error, because the code expects an empty array(), while the .yml parses these as null.

Tis fix prevents "Array expected"-exceptions thrown in, for example, here:

$self->variables = array_merge($self->variables, array(
mikerockett commented 10 years ago

Thanks, Bob :+1:

bobdenotter commented 10 years ago

No problem. I'm already using your extension in a production website: http://acwet.nl/grondwetstrijd ;-)

mikerockett commented 10 years ago

Cool :) What links are you redirecting? (just gotta see it's working, hehe)

mikerockett commented 10 years ago

Oh lol, silly me. That was the redirect. Bad time for me to make comments - I've had a really long day.