@@ -129,11 +129,11 @@ public function listApps(bool $details = false): DataResponse {
129129
130130 $ appData ['groups ' ] = $ groups ;
131131 // analyze dependencies
132- $ ignoreMax = in_array ($ appData ['id ' ], $ ignoreMaxApps );
132+ $ ignoreMax = in_array ($ appData ['id ' ], $ ignoreMaxApps, true );
133133 $ missing = $ this ->dependencyAnalyzer ->analyze ($ appData , $ ignoreMax );
134134 $ appData ['missingDependencies ' ] = $ missing ;
135135 $ appData ['isCompatible ' ] = $ this ->dependencyAnalyzer ->isMarkedCompatible ($ appData );
136- $ appData ['internal ' ] = in_array ($ appData ['id ' ], $ this ->appManager ->getAlwaysEnabledApps ());
136+ $ appData ['internal ' ] = in_array ($ appData ['id ' ], $ this ->appManager ->getAlwaysEnabledApps (), true );
137137
138138 return $ appData ;
139139 }, $ apps );
@@ -332,7 +332,7 @@ private function fetchApps(): void {
332332 $ supportedApps = $ this ->subscriptionRegistry ->delegateGetSupportedApps ();
333333 $ shippedApps = $ this ->appManager ->getAlwaysEnabledApps ();
334334 foreach ($ apps as $ app ) {
335- if (in_array ($ app ['id ' ], $ shippedApps )) {
335+ if (in_array ($ app ['id ' ], $ shippedApps, true )) {
336336 // shipped apps are no longer published on the appstore
337337 // so skip them to avoid confusion with outdated data
338338 continue ;
@@ -345,7 +345,7 @@ private function fetchApps(): void {
345345 $ this ->allApps [$ app ['id ' ]] = array_merge ($ app , $ this ->allApps [$ app ['id ' ]]);
346346 }
347347
348- if (in_array ($ app ['id ' ], $ supportedApps )) {
348+ if (in_array ($ app ['id ' ], $ supportedApps, true )) {
349349 $ this ->allApps [$ app ['id ' ]]['level ' ] = \OC_App::supportedApp;
350350 }
351351 }
@@ -463,7 +463,7 @@ private function getAppsForCategory(string $requestedCategory = ''): array {
463463 'license ' => $ app ['releases ' ][0 ]['licenses ' ],
464464 'author ' => $ authors ,
465465 'shipped ' => $ this ->appManager ->isShipped ($ app ['id ' ]),
466- 'internal ' => in_array ($ app ['id ' ], $ this ->appManager ->getAlwaysEnabledApps ()),
466+ 'internal ' => in_array ($ app ['id ' ], $ this ->appManager ->getAlwaysEnabledApps (), true ),
467467 'version ' => $ currentVersion ,
468468 'types ' => [],
469469 'documentation ' => [
0 commit comments