[BUGFIX] Remove unused variables from LiveSearch getRecordArray 62/48362/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 28 May 2016 14:21:51 +0000 (16:21 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 28 May 2016 21:19:29 +0000 (23:19 +0200)
Resolves: #76248
Releases: master, 7.6
Change-Id: Iadf5c209bf12ad199ae92f654d2348b70001c053
Reviewed-on: https://review.typo3.org/48362
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php

index 03c2436..b18912e 100644 (file)
@@ -192,7 +192,6 @@ class LiveSearch
     protected function getRecordArray($tableName, $where, $orderBy, $limit)
     {
         $collect = array();
-        $isFirst = true;
         $queryParts = array(
             'SELECT' => '*',
             'FROM' => $tableName,
@@ -201,7 +200,6 @@ class LiveSearch
             'LIMIT' => $limit
         );
         $result = $GLOBALS['TYPO3_DB']->exec_SELECT_queryArray($queryParts);
-        $dbCount = $GLOBALS['TYPO3_DB']->sql_num_rows($result);
         $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
             $title = 'id=' . $row['uid'] . ', pid=' . $row['pid'];
@@ -213,7 +211,6 @@ class LiveSearch
                 'title' => htmlspecialchars(BackendUtility::getRecordTitle($tableName, $row)),
                 'editLink' => htmlspecialchars($this->getEditLink($tableName, $row))
             );
-            $isFirst = false;
         }
         $GLOBALS['TYPO3_DB']->sql_free_result($result);
         return $collect;