Fixed bug #11746: Performance improvement: speed up function t3lib_BEfunc::isRecordLo...
authorRupert Germann <rupi@gmx.li>
Wed, 19 Aug 2009 10:41:02 +0000 (10:41 +0000)
committerRupert Germann <rupi@gmx.li>
Wed, 19 Aug 2009 10:41:02 +0000 (10:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5803 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index 982e7d4..bd5074b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-19  Rupert Germann  <rupi@gmx.li>
+
+       * Fixed bug #11746: Performance improvement: speed up function t3lib_BEfunc::isRecordLocked()
+
 2009-08-19  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #11716: Install Tool always sets TYPO3_CONF_VARS[FE][disableNoCacheParameter] upon save
 2009-08-19  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #11716: Install Tool always sets TYPO3_CONF_VARS[FE][disableNoCacheParameter] upon save
index 7537e3d..df43ff2 100644 (file)
@@ -3007,6 +3007,7 @@ final class t3lib_BEfunc {
        public static function isRecordLocked($table, $uid) {
                global $LOCKED_RECORDS;
                if (!is_array($LOCKED_RECORDS)) {
        public static function isRecordLocked($table, $uid) {
                global $LOCKED_RECORDS;
                if (!is_array($LOCKED_RECORDS)) {
+                       $LOCKED_RECORDS = array();
                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                                        '*',
                                                        'sys_lockedrecords',
                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                                        '*',
                                                        'sys_lockedrecords',