mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
app_path cannot be empty
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
1a781ccf56
commit
9f9da2eaa8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue