Issue #2356843 by David Sparks: PHP5.3 fatal error when $variables['path'] is a string rather than an array