made it working with ushahidi 2.6.1

This is simple change in code, but people who use Ushahidi without knowledge of PHP (p.e. me) want to just use it. :)