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