--- src/states/StateMainMenu.cpp 2008-03-14 08:36:17.000000000 +0100 +++ src/states/StateMainMenu.cpp.new 2008-06-28 23:11:28.000000000 +0200 @@ -681,9 +681,9 @@ v_window = new UIWindow(i_parent, x, y, "", nWidth, nHeight); v_window->setID("REPORT"); - v_result = pDb->readDB("SELECT a.nbStarts, a.since, SUM(b.playedTime), " - "SUM(b.nbPlayed), SUM(b.nbDied), SUM(b.nbCompleted), " - "SUM(b.nbRestarted), count(b.id_level) " + v_result = pDb->readDB("SELECT IFNULL(a.nbStarts,0), a.since, SUM(IFNULL(b.playedTime,0)), " + "SUM(IFNULL(b.nbPlayed,0)), SUM(IFNULL(b.nbDied,0)), SUM(IFNULL(b.nbCompleted,0)), " + "SUM(IFNULL(b.nbRestarted,0)), count(b.id_level) " "FROM stats_profiles AS a INNER JOIN stats_profiles_levels AS b " "ON a.id_profile=b.id_profile " "WHERE a.id_profile=\"" + xmDatabase::protectString(XMSession::instance()->profile()) + "\" "