Naming inconsistencies for userid fixed
[mailer.git] / inc / modules / member / what-stats.php
index ef5959e75020cb81ea7d71f36e450abe4f1eaf46..65a9a51674414cbd2391587d67140c9ff292f8ec 100644 (file)
@@ -58,7 +58,7 @@ WHERE
        `sender`=%s AND `data_type` != 'SEND'
 ORDER BY
        `timestamp` DESC",
-       array(getUserId()), __FILE__, __LINE__);
+       array(getMemberId()), __FILE__, __LINE__);
 
 // Are there mails left in pool?
 if (SQL_NUMROWS($result) > 0) {
@@ -108,7 +108,7 @@ WHERE
        `userid`=%s
 ORDER BY
        `timestamp_ordered` DESC",
-       array(getUserId()), __FILE__, __LINE__);
+       array(getMemberId()), __FILE__, __LINE__);
 
 if (SQL_NUMROWS($result) > 0) {
        // Mail orders are in pool so we can display them