X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_cats.php;h=4b41510cc5bff98ae301b0b2e45dae5f5e286631;hb=ccf34a2a92d80d01debd84b4b6e1f294d8f90cce;hp=7aaf18c3f9a88c7c12e5c8841f9755206256e6cb;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git
diff --git a/inc/modules/admin/what-list_cats.php b/inc/modules/admin/what-list_cats.php
index 7aaf18c3f9..4b41510cc5 100644
--- a/inc/modules/admin/what-list_cats.php
+++ b/inc/modules/admin/what-list_cats.php
@@ -1,7 +1,7 @@
".$content['surname']." ".$content['family']."";
+ $content['email'] = '' . $content['surname'] . ' ' . $content['family'] . '';
// Ok, list categories of this user
$result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
@@ -68,7 +66,7 @@ if (isGetRequestElementSet('userid')) {
while ($content = merge_array($content, SQL_FETCHARRAY($result_cats))) {
// Check user's selection
$result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
- array(bigintval(getRequestElement('userid')), bigintval($content['id'])), __FILE__, __LINE__);
+ array(bigintval(getRequestParameter('userid')), bigintval($content['id'])), __FILE__, __LINE__);
// Set selection
$selection = "{--NO--}";
@@ -98,11 +96,8 @@ if (isGetRequestElementSet('userid')) {
}
} else {
// User not found
- loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_MEMBER_404'), $content['userid']));
+ loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', $content['userid']));
}
-
- // Free result
- SQL_FREERESULT($result);
} else {
// Output selection form with all confirmed user accounts listed
addMemberSelectionBox();