]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_cats.php
Missing initReferalSystem() call added
[mailer.git] / inc / modules / admin / what-list_cats.php
index 2dffa041f500c0fe9673e24f2c5643e8b7f373cc..fdf5a00c888249d41743b6ec912ee4129a242d97 100644 (file)
@@ -52,8 +52,7 @@ if (isGetRequestParameterSet('userid')) {
 
                // Prepare constants
                // @TODO No longer needed? define('__CATEGORIES_BASE'   , '<a href="{%url=modules.php?module=admin&amp;userid=');
-               $content['userid']       = bigintval(getRequestParameter('userid'));
-               $content['email']        = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';
+               $content['email']  = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">{%pipe,translateGender=' . $content['gender'] . '%} ' . $content['surname'] . ' ' . $content['family'] . '</a>';
 
                // Ok, list categories of this user
                $result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
@@ -72,11 +71,13 @@ if (isGetRequestParameterSet('userid')) {
 
                                // Set selection
                                $selection = '<font color="#ee0000">{--NO--}</div>';
-                               if (SQL_NUMROWS($result_user) == 1) $selection = '<font color="#00ee00">{--YES--}</div>';
+                               if (SQL_NUMROWS($result_user) == 1) {
+                                       $selection = '<font color="#00ee00">{--YES--}</div>';
+                               } // END - if
 
                                // Add more elements
-                               $content['cnt'] = $count;
-                               $content['sel'] = $selection;
+                               $content['count'] = $count;
+                               $content['sel']   = $selection;
 
                                // Load row template and count up
                                $OUT .= loadTemplate('admin_list_user_cats_row', true, $content);