Fixed bug #6844: DB compare fails
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 5 Dec 2007 11:04:56 +0000 (11:04 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 5 Dec 2007 11:04:56 +0000 (11:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2796 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_install.php

index 3c6d5d3..5315386 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-02     Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #6844: DB compare fails
+
 2007-12-04  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Fixed bug #6114: t3lib_extMgm::addToAllTCATypes ignores type 0
index 165f01f..8e70a3e 100755 (executable)
@@ -499,7 +499,7 @@ class t3lib_install {
                                                                        $fieldN = str_replace('`','',$fieldN);
                                                                        if (!isset($FDcomp[$table][$theKey][$fieldN]))  {
                                                                                $extraArr[$table][$theKey][$fieldN] = $fieldC;
-                                                                       } elseif (strcmp($FDcomp[$table][$theKey][$fieldN], $ignoreNotNullWhenComparing?str_replace(' NOT NULL', '', $fieldC):$fieldC)) {
+                                                                       } elseif (strcmp($FDcomp[$table][$theKey][$fieldN], $ignoreNotNullWhenComparing?str_replace(' NOT NULL', '', trim($fieldC)):trim($fieldC)))     {
                                                                                $diffArr[$table][$theKey][$fieldN] = $fieldC;
                                                                                $diffArr_cur[$table][$theKey][$fieldN] = $FDcomp[$table][$theKey][$fieldN];
                                                                        }