Work around preg_replace_callback() issue in CSSJanus
authorCatrope <roan.kattouw@gmail.com>
Tue, 28 Aug 2012 19:35:27 +0000 (12:35 -0700)
committerCatrope <roan.kattouw@gmail.com>
Tue, 28 Aug 2012 19:35:27 +0000 (12:35 -0700)
commite4fbf314feca13c9a72275dc6f374d46e675c13c
treecdb21b96b629fd3c65417cd34d50f9f493547b4e
parentee3f8ee9fc98574803e69f3479e209f5b80536de
Work around preg_replace_callback() issue in CSSJanus

As reported in bug 38294, CSSJanus returns an empty string for some
input. This seems to be caused by preg_replace_callback() returning
null which, according to the PHP docs, happens "in case of error". Of
course there's no way to figure out what the error was :S

Work around this by checking for a null return value

Change-Id: I5db952bc32f73b94ac13e449d9aa1f8693602dbd
includes/libs/CSSJanus.php