X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Foverview-inc.php;h=4675398ce0491babca50a2e7ab2d7c3a3c513fcc;hb=875fc680630af5fdf69f42e77321d807e182916d;hp=5694614ce01d06362ed414c6c318530147495813;hpb=04ee7d1e8b43846ee2d8860b3a8f87b4644b9cd0;p=mailer.git diff --git a/inc/modules/admin/overview-inc.php b/inc/modules/admin/overview-inc.php index 5694614ce0..4675398ce0 100644 --- a/inc/modules/admin/overview-inc.php +++ b/inc/modules/admin/overview-inc.php @@ -353,15 +353,15 @@ LIMIT 1", case 'NL_UNSUBSCRIBE': // Newsletter unsubscriptions $result = SQL_QUERY_ESC("SELECT nl_timespan FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1", - array(bigintval($uid)), __FILE__, __LINE__); + array(bigintval($uid)), __FILE__, __LINE__); list($span) = SQL_FETCHROW($result); SQL_FREERESULT($result); if ($span > 0) { // Undone unscubscribe request $content = array( - 'uid' => $uid, - 'id' => $tid + 'uid' => $uid, + 'id' => $tid ); $OUT .= LOAD_TEMPLATE('admin_newsletter_tsk', true, $content); } else { @@ -422,8 +422,8 @@ LIMIT 1", $content['assigned_admin'] = generateAdminLink($content['assigned_admin']); // Generate infos - switch ($content['task_type']) - { + // @TODO Try to move this in includes + switch ($content['task_type']) { case 'EXTENSION': case 'EXTENSION_UPDATE': $content['infos'] = substr($content['subject'], 1, strpos($content['subject'], ':') - 1);