Skip to content
Snippets Groups Projects
Commit 5354bae1 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing exception in updateSendingTime Wizard

parent ae45730c
No related branches found
No related tags found
1 merge request!3New version 4 1
......@@ -59,8 +59,8 @@ class UpdateSendingTimes extends AbstractUpdate {
/** @var DatabaseConnection $databaseConnection */
$databaseConnection = $GLOBALS['TYPO3_DB'];
// are there site root columns differing from pids?
$where = 'sent = TRUE AND last_sending_time = 0';
// are there sent emails ?
$where = 'sending_time > 0 AND last_sending_time = 0';
$result = $databaseConnection->exec_SELECTquery('*', $this->table, $where);
if ($result->num_rows > 0) {
......@@ -81,8 +81,8 @@ class UpdateSendingTimes extends AbstractUpdate {
/** @var DatabaseConnection $databaseConnection */
$databaseConnection = $GLOBALS['TYPO3_DB'];
$dbQueries = [];
$where = 'sent = TRUE AND last_sending_time = 0';
$result = $databaseConnection->exec_SELECTquery('uid, tstamp', $this->table, $where)->fetch_all();
$where = 'sending_time > 0 AND last_sending_time = 0';
$result = $databaseConnection->exec_SELECTquery('uid, sending_time', $this->table, $where)->fetch_all();
$dbQueries[] = $databaseConnection->debug_lastBuiltQuery;
/** @var array $result */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment