- // Do we have "purged" mails?
- if (SQL_NUMROWS($result_mails) > 0) {
- // Okay, check for their sender's
- while (list($sender) = SQL_FETCHROW($result_mails)) {
- // Check now...
- $fount = SQL_NUMROWS(SQL_QUERY_ESC("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
- array(bigintval($sender)), __FILE__, __LINE__));
- if ($found == 0) {
- // Okay we found some mails!
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_pool` WHERE sender=%s",
- array(bigintval($sender)), __FILE__, __LINE__);
- $DELETED += SQL_AFFECTEDROWS();
+// Do we have "purged" mails?
+if (SQL_NUMROWS($result_mails) > 0) {
+ // Okay, check for their sender's
+ while ($content = SQL_FETCHARRAY($result_mails)) {
+ // Check now...
+ if (!fetchUserData($content['sender'])) {
+ // Okay we found some mails!
+ SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s",
+ array(bigintval($content['sender'])), __FILE__, __LINE__);
+ $DELETED += SQL_AFFECTEDROWS();