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
Merge "selenium: Replace ES5 one-var assignments with const/let per line"
[lhc/web/wiklou.git]
/
includes
/
Revision
/
SlotRecord.php
diff --git
a/includes/Revision/SlotRecord.php
b/includes/Revision/SlotRecord.php
index
064f7a4
..
7465f79
100644
(file)
--- a/
includes/Revision/SlotRecord.php
+++ b/
includes/Revision/SlotRecord.php
@@
-539,6
+539,11
@@
class SlotRecord {
try {
$sha1 = $this->getStringField( 'content_sha1' );
} catch ( IncompleteRevisionException $ex ) {
try {
$sha1 = $this->getStringField( 'content_sha1' );
} catch ( IncompleteRevisionException $ex ) {
+ $sha1 = null;
+ }
+
+ // Compute if missing. Missing could mean null or empty.
+ if ( $sha1 === null || $sha1 === '' ) {
$format = $this->hasField( 'format_name' )
? $this->getStringField( 'format_name' )
: null;
$format = $this->hasField( 'format_name' )
? $this->getStringField( 'format_name' )
: null;