@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | if ($checkct) { |
| 51 | 51 | $consent_result = BoincLatestConsent::lookup("userid={$user->id} AND consent_type_id=$ctid AND consent_flag=1"); |
| 52 | 52 | if ($consent_result) { |
| 53 | - return TRUE; |
|
| 53 | + return true; |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | - return FALSE; |
|
| 56 | + return false; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | // Check if a particular consent_type name is available. |
@@ -63,12 +63,12 @@ discard block |
||
| 63 | 63 | // The integer is the consent_type_id- the id from consent_type table. |
| 64 | 64 | // If the boolean is FALSE, the integer returned is -1. |
| 65 | 65 | // |
| 66 | -function check_consent_type($name, $checkenabled=TRUE) { |
|
| 66 | +function check_consent_type($name, $checkenabled=true) { |
|
| 67 | 67 | $ct = BoincConsentType::lookup("shortname = '{$name}'"); |
| 68 | 68 | if ($ct and ( !$checkenabled or ($ct->enabled)) ) { |
| 69 | - return array(TRUE, $ct->id); |
|
| 69 | + return array(true, $ct->id); |
|
| 70 | 70 | } |
| 71 | - return array(FALSE, -1); |
|
| 71 | + return array(false, -1); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | // When a user uses the Web site to login, this function checks the |