X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryQueryPage.php;h=26c17c59b8f3cd3a4aece5dd3f007fe8a006e055;hb=0d6ef1c0b20093e03e95a6b7f303c7a2de5de3af;hp=ea2066490e76d274db6ceff06fee62e40663b342;hpb=8fd486ef18e1b4196572d028b4384b75f2441b83;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index ea2066490e..26c17c59b8 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -122,9 +122,12 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { $title = Title::makeTitle( $row->namespace, $row->title ); if ( is_null( $resultPageSet ) ) { - $data = [ 'value' => $row->value ]; - if ( $qp->usesTimestamps() ) { - $data['timestamp'] = wfTimestamp( TS_ISO_8601, $row->value ); + $data = []; + if ( isset( $row->value ) ) { + $data['value'] = $row->value; + if ( $qp->usesTimestamps() ) { + $data['timestamp'] = wfTimestamp( TS_ISO_8601, $row->value ); + } } self::addTitleInfo( $data, $title );