import: Don't try duplicate detection when the sha1 is unavailable
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Apr 2018 20:57:28 +0000 (16:57 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 23 Apr 2018 20:57:28 +0000 (16:57 -0400)
commitf09d66de2ab88e3ed39fc21b3805cea90eee5bfe
treed47051a15c736c11e6f247aee50ba09abfdd5526
parent2224e31507249e2ed86eae5f0beac731ee8a921c
import: Don't try duplicate detection when the sha1 is unavailable

Trying to compare a string field with 0 (cast from false) raises an
error in PostgreSQL, and we're expecting it to not detect duplicates in
that situation anyway.

Change-Id: Ibff6daee6bbec00e37532e03c9ece041ba612de0
includes/import/ImportableOldRevisionImporter.php