background-size: cover;
</style>";
- } else if( $depth !== 0 && 1410 == $object->object_id ){
+ } else if( $depth !== 0 && 1410 == (int)$object->object_id ){
$thumbnail = get_template_directory_uri() . '/assets/run-mackinac.jpg';
$item_style .= "<style>
#menu-main #menu-item-".$object->ID.":before {
background-image: url('".$thumbnail."');
background-size: cover;
</style>";
-
- } else if( $depth !== 0 && 1433 == $object->object_id ){
+
+ } else if( $depth !== 0 && 1433 == (int)$object->object_id ){
$thumbnail = get_template_directory_uri() . '/assets/chicago-yacht-race.jpg';
$item_style .= "<style>
#menu-main #menu-item-".$object->ID.":before {