GitInfo: Don't try shelling out if it's disabled
[lhc/web/wiklou.git] / includes / Revision.php
index 89a58f3..dc15f97 100644 (file)
@@ -1074,6 +1074,11 @@ class Revision implements IDBAccessObject {
         * @return string|bool Decompressed text, or false on failure
         */
        public static function decompressRevisionText( $text, $flags ) {
+               if ( $text === false ) {
+                       // Text failed to be fetched; nothing to do
+                       return false;
+               }
+
                return self::getBlobStore()->decompressData( $text, $flags );
        }