$content['time'] = (getConfig('ap_inactive_time') / 60 / 60);
// Mark found accounts as inactive and send an email
- while ($content = SQL_FETCHARRAY($result_inactive)) {
+ while ($content = merge_array($content, SQL_FETCHARRAY($result_inactive))) {
// Remember userids for the admin
$useridsContent .= $content['userid'].", ";
// Okay we found some mails!
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s",
array(bigintval($content['sender'])), __FILE__, __LINE__);
+
+ // Get all affected (deleted) rows
$deletedStats += SQL_AFFECTEDROWS();
// Reset query (to prevent possible errors) ...;
// Okay we found some mails!
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `sender`=%s",
array(bigintval($content['sender'])), __FILE__, __LINE__);
+
+ // Get all affected (deleted) rows
$deletedStats += SQL_AFFECTEDROWS();
// Reset query (to prevent possible errors) ...
FROM
`{?_MYSQL_PREFIX?}_task_system`
WHERE
- `status`='DELETED' AND `task_created` <= (UNIX_TIMESTAMP() - {?ap_tasks_time?})", __FILE__, __LINE__);
+ `status`='DELETED' AND
+ `task_created` <= (UNIX_TIMESTAMP() - {?ap_tasks_time?})", __FILE__, __LINE__);
// Get deleted rows
$deletedTasks = SQL_AFFECTEDROWS();
$content['time'] = (getConfig('ap_unconfirmed_time') / 60 / 60);
// Delete inactive accounts
- while ($content = SQL_FETCHARRAY($result_uncon)) {
+ while ($content = merge_array($content, SQL_FETCHARRAY($result_uncon))) {
// Remember userids for the admin
$userids .= $content['userid'] . ', ';