r92093 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92092‎ | r92093 | r92094 >
Date:20:09, 13 July 2011
Author:kipcool
Status:ok
Tags:
Comment:
is_object() ! (thanks Nikerabbit )
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Record.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/Record.php
@@ -119,7 +119,7 @@
120120 $rv = $comma;
121121 $repr = "$key:$value";
122122 // $value is never a class??
123 - if ( gettype ( $value ) == "object" ) {
 123+ if ( is_object ( $value ) ) {
124124 if ( property_exists ( $value , 'tostring_indent' ) ) {
125125 $repr = $value->tostring_indent( $depth + 1, $key );
126126 }

Status & tagging log