PHP Classes

Error in WikiParser::test

Recommend this page to a friend!

      Wiki Parser  >  All threads  >  Error in WikiParser::test  >  (Un) Subscribe thread alerts  
Subject:Error in WikiParser::test
Summary:WikiParser::emphasize_off - $this->emphasis NOT an array
Author:Alan Prescott
Date:2010-03-23 10:29:10

  1. Error in WikiParser::test   Reply   Report abuse  
Picture of Alan Prescott Alan Prescott - 2010-03-23 10:29:10
I'm evaluating the WikiParser class to use in a web-site back-end and I'm getting an error.

I've not chased this down but running the WikiParser::test function raises an error on line 127 with an invalid variable type being passed to foreach.

As a quick-fix I've just enclosed the offending foreach loop in an is_array($this->emphasis) test. I don't know if this will have any knock-on effects.