[TASK] Deprecate ArrayUtility::inArray()
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / Menu / JavaScriptMenuContentObject.php
index 8325908..bbb48e2 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Frontend\ContentObject\Menu;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\ArrayUtility;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Utility\MathUtility;
@@ -139,7 +138,7 @@ var ' . $this->JSVarName . $a . '=0;';
             // If the spacer-function is not enabled, spacers will not enter the $menuArr
             if ($this->mconf['SPC'] || !$spacer) {
                 // Page may not be 'not_in_menu' or 'Backend User Section' + not in banned uid's
-                if (!GeneralUtility::inList($this->doktypeExcludeList, $data['doktype']) && (!$data['nav_hide'] || $this->conf['includeNotInMenu']) && !ArrayUtility::inArray($banUidArray, $uid)) {
+                if (!GeneralUtility::inList($this->doktypeExcludeList, $data['doktype']) && (!$data['nav_hide'] || $this->conf['includeNotInMenu']) && !in_array($uid, $banUidArray, false)) {
                     if ($count < $levels) {
                         $addLines = $this->generate_level($levels, $count + 1, $data['uid'], '', $MP_array_sub);
                     } else {