X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_cats.php;h=f5eeb03c7b0e8da874d112166f753fd65ed23921;hb=0e269568bd666186509e98594e83bac199ac26da;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..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' , "