aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-08-25 09:55:39 +0200
committerGitHub <noreply@github.com>2022-08-25 09:55:39 +0200
commit711a9fd209cafeee973c1f0c0924e974ffbe53f5 (patch)
tree2cedd6d3e163a91d853f313de4fecd8fc1cf7f53 /lib
parent06340b6672ea8019e8dc9fff5e87d2edb8a3ac17 (diff)
parent9f9da2eaa8a7b35fed04d9e676f30495e1a11263 (diff)
downloadnextcloud-server-711a9fd209cafeee973c1f0c0924e974ffbe53f5.tar.gz
nextcloud-server-711a9fd209cafeee973c1f0c0924e974ffbe53f5.zip
Merge pull request #33682 from nextcloud/fix/noid/help-page-unavailable
Fix opening Help page throwing Exception
Diffstat (limited to 'lib')
-rw-r--r--lib/private/URLGenerator.php2
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) {