Store results for checkwps of both current and release.
authorJonas Häggqvist <rasher@rasher.dk>
Tue, 17 Mar 2009 21:24:23 +0000 (17 22:24 +0100)
committerJonas Häggqvist <rasher@rasher.dk>
Tue, 17 Mar 2009 21:24:23 +0000 (17 22:24 +0100)
private/themesite.class.php

index 3247138..b3be852 100644 (file)
@@ -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),