dcti/stats-html — pull request #1 by strigona (2012-02-22 00:26:48+00:00)
Title: Fix psummary_xml error

psummary_xml.php fails gracefully when there aren't stats for a user.

An example of the current failure can be seen here: http://stats.distributed.net/participant/psummary_xml.php?project_id=27&id=1

It relies on pg_fetch_object (in DB->fetch_object()) returning false if the row doesn't exist.

Note: This code has not been tested as I don't have access to a suitable testing server.