forked from science-ation/science-ation
- remove old user_update_complete function, each user type now updates their
individual complete entry.
This commit is contained in:
parent
74fe5db9f7
commit
f9d3913697
14
user.inc.php
14
user.inc.php
@ -783,20 +783,6 @@ function user_personal_info_status($u = false)
|
||||
return 'complete';
|
||||
}
|
||||
|
||||
function user_update_complete(&$u, $status)
|
||||
{
|
||||
if($status == 'complete' && $u['complete'] != 'yes') {
|
||||
mysql_query("UPDATE users SET complete='yes' WHERE id='{$_SESSION['users_id']}'");
|
||||
$u['complete'] = 'yes';
|
||||
return;
|
||||
}
|
||||
if($status != 'complete' && $u['complete'] == 'yes') {
|
||||
mysql_query("UPDATE users SET complete='no' WHERE id='{$_SESSION['users_id']}'");
|
||||
$u['complete'] = 'no';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function user_committee_login($u)
|
||||
{
|
||||
/* Double check, make sure the user is of this type */
|
||||
|
Loading…
x
Reference in New Issue
Block a user