-if ((isFormSent()) || ((isPostRequestElementSet('del')) && (isPostRequestElementSet(('reason'))))) {
- // Delete users account
- $result_user = SQL_QUERY_ESC("SELECT userid FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid`=%s LIMIT 1",
- array(bigintval(getRequestElement('userid'))), __FILE__, __LINE__);
- if (SQL_NUMROWS($result_user) == 1) {
- // Free memory
- SQL_FREERESULT($result_user);
-
+if ((isFormSent()) || ((isFormSent('delete')) && (isPostRequestParameterSet('reason')))) {
+ // Is the account there?
+ if (fetchUserData(getRequestParameter('userid'))) {