Skip to content

Instantly share code, notes, and snippets.

@akost
Created September 15, 2011 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akost/1218774 to your computer and use it in GitHub Desktop.
Save akost/1218774 to your computer and use it in GitHub Desktop.
Очередной перл, доставшийся в наследство
$id = intval($_REQUEST['sec']);
if ($id == '') { // будет TRUE, но зачем переводить в int, чтобы сравнивать со строкой?
$id = MENU_DEFAULT;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment