ushahidi/Ushahidi_Web — pull request #1201 by ditorelo (2013-08-19 10:22:21+00:00)
Title: Issue #1010: $dp1 not defined

Turned out that the script aborts early on a few places if it can't find the data it needs. Had a look and try to make the returns consistent throughout the file.

Note: I didn't have a chance to test all scenarios because I don't have a lot of data on my DB.