From: Christian Aistleitner Date: Fri, 20 Apr 2012 12:45:13 +0000 (+0200) Subject: Hot-fix for mismatching lens from database X-Git-Tag: 1.31.0-rc.0~23816^2~1 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=0e045c230ff477392c3edf3d7a7d6668365b9fda;p=lhc%2Fweb%2Fwiklou.git Hot-fix for mismatching lens from database Change-Id: Idb58ce271d514f6f335877af1e0e4149ab337fef --- diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index 675216682c..acf4a10e1a 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -444,6 +444,13 @@ class TextPassDumper extends BackupDumper { } else { $text = $this->getTextDb( $id ); } + + // No more checks for texts from DB for now. + // If we received something that is not false, + // We treat it as good text, regardless of whether it actually is or is not + if ( $text !== false ) { + return $text; + } } if ( $text === false ) {