diff options
-rw-r--r-- | lib/helper.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/helper.php b/lib/helper.php index 9faf8861161..072607f742b 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -39,11 +39,10 @@ class OC_HELPER { if(!empty($app)) { $app .= '/'; - } - - // Check if the app is in the app folder - if( file_exists( $SERVERROOT . '/apps/'. $app )){ - return $WEBROOT . '/apps/' . $app . $file; + // Check if the app is in the app folder + if( file_exists( $SERVERROOT . '/apps/'. $app )){ + return $WEBROOT . '/apps/' . $app . $file; + } } return $WEBROOT . '/' . $app . $file; } |