Skip navigation.
Home

Add new comment

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.

Reply




*

  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <p> <br>
  • Web and e-mail addresses are automatically converted into links.