X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Foverview-inc.php;h=cb91f5fae926f83aa34542649434b41dda81a2fa;hb=76b1b077bda73310c536f658d3a9bb5e12232f39;hp=278c2b0e7a24c9778631e117388c2920363aab5e;hpb=9f6c30cc0e06098171d773d671292081ecee3d29;p=mailer.git
diff --git a/inc/modules/admin/overview-inc.php b/inc/modules/admin/overview-inc.php
index 278c2b0e7a..cb91f5fae9 100644
--- a/inc/modules/admin/overview-inc.php
+++ b/inc/modules/admin/overview-inc.php
@@ -1,7 +1,7 @@
0)) {
+ if ((isset($postData['assign'])) && (count($postData['sel']) > 0)) {
// Assign / do tasks
$OUT = ''; $SW = 2;
- foreach ($postData['task'] as $id => $sel) {
+ foreach ($postData['sel'] as $id => $sel) {
$result_task = SQL_QUERY_ESC("SELECT
`id`, `userid`, `task_type`, `subject`, `text`, `task_created`, `status`, `assigned_admin`
FROM
@@ -150,7 +150,7 @@ LIMIT 1",
// Task is valid...
list($tid, $userid, $type, $subj, $text, $created, $status, $adminId) = SQL_FETCHROW($result_task);
- if ($adminId == 0) {
+ if ($adminId == '0') {
// Assgin current admin to unassgigned task
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_task_system` SET `assigned_admin`=%s WHERE `id`=%s LIMIT 1",
array(getCurrentAdminId(), bigintval($tid)), __FILE__, __LINE__);
@@ -176,7 +176,7 @@ LIMIT 1",
} else {
// Invalid userid, so log and zero it
logDebugMessage(__FUNCTION__, __LINE__, 'Invalid userid=' . $userid . ' -> not found!');
- $userid = 0;
+ $userid = '0';
}
} // END - if
@@ -241,7 +241,7 @@ LIMIT 1",
// Add SQLs to a table
if ((!empty($ext_name)) && (getExtensionVersion('sql_patches')) && (getConfig('verbose_sql') == 'Y')) {
// Add verbose SQL table
- $text .= addExtensionVerboseSqlTable($title, " class=\"admin_table top2 left2 right2\"", true, '100%') . "
\n";
+ $text .= addExtensionVerboseSqlTable($title, " class=\"admin_table top left right\"", true, '100%') . "
\n";
} // END - if
} elseif ((!empty($ext_name)) && (!empty($ext_ver))) {
// Run SQL commands in dry mode but only return the notes
@@ -271,7 +271,7 @@ LIMIT 1",
$OUT .= loadTemplate('admin_overview_row', true, $content);
// Which task do we actually have here?
- // @TODO Rewrite this to something with include files
+ // @TODO Rewrite this to something with include files and/or filter
switch ($type) {
case 'EXTENSION': // Install new extensions
$ext_name = substr($subj, 1, strpos($subj, ':') - 1);
@@ -279,7 +279,7 @@ LIMIT 1",
array($ext_name), __FILE__, __LINE__);
$lines = SQL_NUMROWS($result_lines);
SQL_FREERESULT($result_lines);
- if ($lines == 0) {
+ if ($lines == '0') {
// New extension found
$OUT .= loadTemplate('admin_ext_reg_form', true, array(
'id' => bigintval($id),
@@ -289,7 +289,7 @@ LIMIT 1",
// Task is closed so nothing is todo
$OUT .= "