From: Jonas Häggqvist Date: Tue, 17 Mar 2009 21:24:23 +0000 (+0100) Subject: Store results for checkwps of both current and release. X-Git-Url: https://repo.or.cz/w/rockboxthemes.git/commitdiff_plain/b950094921221551cd3a1ae7bd0fce91e683bd57 Store results for checkwps of both current and release. --- diff --git a/private/themesite.class.php b/private/themesite.class.php index 3247138..b3be852 100644 --- a/private/themesite.class.php +++ b/private/themesite.class.php @@ -97,7 +97,7 @@ class themesite { * data, and one with only the latest results for fast * retrieval? */ - $this->db->query(sprintf("DELETE FROM checkwps WHERE themeid=%d", $theme['RowID'])); + $this->db->query(sprintf("DELETE FROM checkwps WHERE themeid=%d AND version_type='%s'", $theme['RowID'], db::quote($version_type))); $sql = sprintf("INSERT INTO checkwps (themeid, version_type, version_number, target, pass) VALUES (%d, '%s', '%s', '%s', '%s')", $theme['RowID'], db::quote($version_type),