dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
[lhc/web/wiklou.git]
/
includes
/
specialpage
/
QueryPage.php
diff --git
a/includes/specialpage/QueryPage.php
b/includes/specialpage/QueryPage.php
index
f642106
..
655b495
100644
(file)
--- a/
includes/specialpage/QueryPage.php
+++ b/
includes/specialpage/QueryPage.php
@@
-806,7
+806,7
@@
abstract class QueryPage extends SpecialPage {
}
$title = Title::makeTitle( intval( $row->namespace ), $row->title );
if ( $title ) {
}
$title = Title::makeTitle( intval( $row->namespace ), $row->title );
if ( $title ) {
- $date =
isset( $row->timestamp ) ? $row->timestamp :
'';
+ $date =
$row->timestamp ??
'';
$comments = '';
if ( $title ) {
$talkpage = $title->getTalkPage();
$comments = '';
if ( $title ) {
$talkpage = $title->getTalkPage();
@@
-830,7
+830,7
@@
abstract class QueryPage extends SpecialPage {
}
function feedItemAuthor( $row ) {
}
function feedItemAuthor( $row ) {
- return
isset( $row->user_text ) ? $row->user_text :
'';
+ return
$row->user_text ??
'';
}
function feedTitle() {
}
function feedTitle() {