Skip to content

Commit

Permalink
Use is_numeric instead of is_int.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersbryrup committed Aug 15, 2013
1 parent 2ea48c1 commit a708c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os2web_contact.module
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function os2web_contact_get_block() {
$field = field_get_items('taxonomy_term', $ent, 'field_os2web_base_field_contact');
}
elseif ($path[0] === 'node') {
if (isset($path[1]) && is_int($path[1])) {
if (isset($path[1]) && is_numeric($path[1])) {
$ent = node_load($path[1]);
$field = field_get_items('node', $ent, 'field_os2web_base_field_contact');
}
Expand Down

0 comments on commit a708c83

Please sign in to comment.