app_path cannot be empty

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/33682/head
Arthur Schiwon 4 years ago
parent 1a781ccf56
commit 9f9da2eaa8
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 2
      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) {

Loading…
Cancel
Save