]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
More rewrites/templates swapped out:
[mailer.git] / inc / mysql-manager.php
index afd2f1caab172368b776823d70d96b759c5d6298..362fa1f780bf587cc14baf6c8844f1b2547aa897 100644 (file)
@@ -1656,7 +1656,8 @@ LEFT JOIN
 ON
        p.userid=d.userid
 WHERE
-       p.userid=%s",
+       p.userid=%s
+LIMIT 1",
                array(bigintval($userid)), __FUNCTION__, __LINE__);
 
        // Do we have an entry?
@@ -1665,7 +1666,8 @@ WHERE
                $data = SQL_FETCHARRAY($result);
 
                // Delete points entries as well
-               SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s", array(bigintval($userid)), __FUNCTION__, __LINE__);
+               SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s",
+                       array(bigintval($userid)), __FUNCTION__, __LINE__);
 
                // Update mediadata as well
                if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) {