mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
Merge pull request #23550 from owncloud/backport-23542
[stable9] getAppPath can return false
This commit is contained in:
commit
03f461591e
1 changed files with 6 additions and 3 deletions
|
|
@ -95,9 +95,12 @@ class Router implements IRouter {
|
|||
if (!isset($this->routingFiles)) {
|
||||
$this->routingFiles = [];
|
||||
foreach (\OC_APP::getEnabledApps() as $app) {
|
||||
$file = \OC_App::getAppPath($app) . '/appinfo/routes.php';
|
||||
if (file_exists($file)) {
|
||||
$this->routingFiles[$app] = $file;
|
||||
$appPath = \OC_App::getAppPath($app);
|
||||
if($appPath !== false) {
|
||||
$file = $appPath . '/appinfo/routes.php';
|
||||
if (file_exists($file)) {
|
||||
$this->routingFiles[$app] = $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue