diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 17:37:48 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 17:37:48 +0000 |
| commit | 4d2af2c2b22015a88cc2a819d23d58b5332e6ee4 (patch) | |
| tree | 11c6e34c8b93bc0c40b50eb3a24dc0e366eecf3c /src/fcontest.php | |
| parent | a40420b6762b66bf9421cbb008df5c1c2f204d21 (diff) | |
| download | boca-4d2af2c2b22015a88cc2a819d23d58b5332e6ee4.tar.gz boca-4d2af2c2b22015a88cc2a819d23d58b5332e6ee4.zip | |
sitenames
Diffstat (limited to 'src/fcontest.php')
| -rw-r--r-- | src/fcontest.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fcontest.php b/src/fcontest.php index fa68b72..8f636f7 100644 --- a/src/fcontest.php +++ b/src/fcontest.php @@ -268,6 +268,9 @@ function DBUserInfo($contest, $site, $user, $c=null,$hashpass=true) { } function cleanuserdesc($a) { $inst = explode(']',$a['userdesc']); + $a['userflag']=''; + $a['usershortinstitution']=''; + $a['usersitename']=''; if(isset($inst[1])) { $inst2 = explode('[',$inst[0]); if(isset($inst2[1])) @@ -276,7 +279,9 @@ function cleanuserdesc($a) { $a['userdesc']=trim($inst[2]); $inst = explode('[',$inst[1]); if(isset($inst[1])) { - $a['userflag'] = trim($inst[1]); + $inst2 = explode(',',trim($inst[1])); + $a['userflag'] = $inst2[0]; + if(isset($inst2[1])) $a['usersitename']=trim($inst2[1]); } } else { $a['userdesc']=trim($inst[1]); |