X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_cats.php;h=f5eeb03c7b0e8da874d112166f753fd65ed23921;hp=7aaf18c3f9a88c7c12e5c8841f9755206256e6cb;hb=9f6c30cc0e06098171d773d671292081ecee3d29;hpb=7bfee4bc71e5b7b741f3451b27ba0a09574dfca8 diff --git a/inc/modules/admin/what-list_cats.php b/inc/modules/admin/what-list_cats.php index 7aaf18c3f9..f5eeb03c7b 100644 --- a/inc/modules/admin/what-list_cats.php +++ b/inc/modules/admin/what-list_cats.php @@ -47,11 +47,9 @@ addMenuDescription('admin', __FILE__); if (isGetRequestElementSet('userid')) { // Check if the user already exists - $result = SQL_QUERY_ESC("SELECT `surname`, `family`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid`=%s LIMIT 1", - array(bigintval(getRequestElement('userid'))), __FILE__, __LINE__); - if (SQL_NUMROWS($result) == 1) { + if (fetchUserData(getRequestElement('userid'))) { // Loads surname, family's name and the email address - $content = SQL_FETCHARRAY($result); + $content = getUserDataArray(); // Prepare constants // @TODO No longer needed? define('__CATS_BASE' , "