app_path cannot be empty

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-08-24 19:09:05 +02:00
parent 1a781ccf56
commit 9f9da2eaa8
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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) {