Permalink
Browse files

Fixed my horrible style...hopefully

  • Loading branch information...
M4LuZ authored and andygrunwald committed Sep 22, 2018
1 parent 12ae141 commit f952c31bd4ed4c1d115d31f5fc6eae28f5c012b0
Showing with 5 additions and 4 deletions.
  1. +5 −4 modules/usrmgr/Functions/CheckValidUsername.php
@@ -5,13 +5,14 @@
* @param string $username The username to be checked
* @return bool|mixed|string
*/
function CheckValidUsername($username){
function CheckValidUsername($username)
{
global $cfg, $db;
if ($cfg['signon_username_unique']){
if ($cfg['signon_username_unique']) {
$row = $db->qry_first('SELECT * FROM %prefix%user WHERE username=%string%', $username);
if ($row){
if ($row) {
return t('Der gewählte Username existiert bereits');
}
}
return false;
}
}

0 comments on commit f952c31

Please sign in to comment.