Index: trunk/extensions/Wikidata/OmegaWiki/Record.php |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | $rv = $comma; |
121 | 121 | $repr = "$key:$value"; |
122 | 122 | // $value is never a class?? |
123 | | - if ( gettype ( $value ) == "object" ) { |
| 123 | + if ( is_object ( $value ) ) { |
124 | 124 | if ( property_exists ( $value , 'tostring_indent' ) ) { |
125 | 125 | $repr = $value->tostring_indent( $depth + 1, $key ); |
126 | 126 | } |