Check if app does exists
This commit is contained in:
parent
1cc6fddead
commit
0e561afe79
|
@ -469,7 +469,12 @@ class OC {
|
||||||
|
|
||||||
public static function loadAppClassPaths() {
|
public static function loadAppClassPaths() {
|
||||||
foreach (OC_APP::getEnabledApps() as $app) {
|
foreach (OC_APP::getEnabledApps() as $app) {
|
||||||
$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
|
$appPath = OC_App::getAppPath($app);
|
||||||
|
if ($appPath === false) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$file = $appPath . '/appinfo/classpath.php';
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require_once $file;
|
require_once $file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue