Skip to content

Commit

Permalink
ignore numeric property from arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
niallkennedy committed Nov 27, 2011
1 parent 3ab66c3 commit cabb18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open-graph-protocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static function buildHTML( array $og, $prefix=self::PREFIX ) {
if ( is_object( $content ) || is_array( $content ) ) {
if ( is_object( $content ) )
$content = $content->toArray();
if ( empty($property) )
if ( empty($property) || !is_string($property) )
$s .= static::buildHTML( $content, $prefix );
else
$s .= static::buildHTML( $content, $prefix . ':' . $property );
Expand Down

0 comments on commit cabb18b

Please sign in to comment.