Skip navigation.
Home

archives

1 + 1 = 3!?

Wonky Code
More crazy code from my world. This is a pretty simple function, but WTF does 3 mean in the code?
  function checkAdminBrokersCorner($fran_id,$admin) {
    if (($admin >= 3) || ($fran_id == 208)) {
      return true;
    }
    return false;
  }
The $fran_id == 208 is fairly easy to figure out. It likely refers to a database ID number. However $admin >= 3 is a little harder to determine what it means.