Paddy - 2011-08-03 08:43:28
Hi
Thanks you for the class it's saving me a lot of time here. I have uncovered one problem with it though:
In the add method you are exploding $code by semi-colon. Problem is there is a valid reason why $code could contain more than one semi-colon. For example if specifying an absolute URL for a background image.
I've changed line 106 to:
list($codekey, $codevalue) = preg_split('/:/', $code, 2);
And that seems to fix the problem.
Just thought I'd let you know.
Cheers
Paddy