diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-08-24 19:09:05 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-08-24 19:09:05 +0200 |
commit | 9f9da2eaa8a7b35fed04d9e676f30495e1a11263 (patch) | |
tree | e7863a358dbf2a1af0b70e1dda386f8e05699cc4 | |
parent | 1a781ccf5610efa7a2f09c059b135d6eff674728 (diff) | |
download | nextcloud-server-9f9da2eaa8a7b35fed04d9e676f30495e1a11263.tar.gz nextcloud-server-9f9da2eaa8a7b35fed04d9e676f30495e1a11263.zip |
app_path cannot be empty
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | lib/private/URLGenerator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/URLGenerator.php b/lib/private/URLGenerator.php index 6115d4a221e..7be2895a1ef 100644 --- a/lib/private/URLGenerator.php +++ b/lib/private/URLGenerator.php @@ -146,7 +146,7 @@ class URLGenerator implements IURLGenerator { if ($appName !== '') { $app_path = $this->getAppManager()->getAppPath($appName); // Check if the app is in the app folder - if ($app_path && file_exists($app_path . '/' . $file)) { + if (file_exists($app_path . '/' . $file)) { if (substr($file, -3) === 'php') { $urlLinkTo = \OC::$WEBROOT . '/index.php/apps/' . $appName; if ($frontControllerActive) { |