Fixed bug #8968: DBAL incompatible SQL in "impexp" extension (thanks to Marc Bastian...
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 14 Aug 2009 08:10:16 +0000 (08:10 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 14 Aug 2009 08:10:16 +0000 (08:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5782 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/impexp/app/index.php
typo3/sysext/impexp/modfunc1/class.tx_impexp_modfunc1.php

index 677421a..4cca675 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-14  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #8968: DBAL incompatible SQL in "impexp" extension (thanks to Marc Bastian Heinrichs)
+
 2009-08-12  Michael Stucki  <michael@typo3.org>
 
        * Follow-up to bug #11513: Shorten one ident field which is known to be too long (solved the issue on those setups where the DB is not updated)
index 44c38eb..406a8bc 100755 (executable)
@@ -944,7 +944,7 @@ class SC_mod_tools_log_index extends t3lib_SCbase {
                $presets = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
                                                '*',
                                                'tx_impexp_presets',
-                                               '(public>0 || user_uid='.intval($GLOBALS['BE_USER']->user['uid']).')'.
+                                               '(public>0 OR user_uid='.intval($GLOBALS['BE_USER']->user['uid']).')'.
                                                        ($inData['pagetree']['id'] ? ' AND (item_uid='.intval($inData['pagetree']['id']).' OR item_uid=0)' : '')
 
                                        );
index 904547d..6e8a546 100755 (executable)
@@ -192,7 +192,7 @@ class tx_impexp_modfunc1 extends mod_user_task {
                $presets = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
                                '*',
                                'tx_impexp_presets',
-                               '(public>0 || user_uid='.intval($GLOBALS['BE_USER']->user['uid']).')',
+                               '(public>0 OR user_uid='.intval($GLOBALS['BE_USER']->user['uid']).')',
                                '',
                                'item_uid DESC, title'
                        );