Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-10 01:43:35 +0400
committerBart Visscher <bartv@thisnet.nl>2013-02-14 11:36:26 +0400
commit26791238463fda41f8b5abdedb7164df63d1b766 (patch)
tree5624d2f701b10f379f38d9c5ca8601d89d39ebdb /lib/app.php
parentcd35d257bb3bef2e02ccf0cd99e59a74f1a753b9 (diff)
Add braces around single line if statements
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/app.php b/lib/app.php
index fe381a57077..159ada958d3 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -168,8 +168,9 @@ class OC_App{
* get all enabled apps
*/
public static function getEnabledApps() {
- if(!OC_Config::getValue('installed', false))
+ if(!OC_Config::getValue('installed', false)) {
return array();
+ }
$apps=array('files');
$query = OC_DB::prepare( 'SELECT `appid` FROM `*PREFIX*appconfig` WHERE `configkey` = \'enabled\' AND `configvalue`=\'yes\'' );
$result=$query->execute();
@@ -346,9 +347,10 @@ class OC_App{
$settings[] = array( "id" => "personal", "order" => 1, "href" => OC_Helper::linkToRoute( "settings_personal" ), "name" => $l->t("Personal"), "icon" => OC_Helper::imagePath( "settings", "personal.svg" ));
// if there are some settings forms
- if(!empty(self::$settingsForms))
+ if(!empty(self::$settingsForms)) {
// settings menu
$settings[]=array( "id" => "settings", "order" => 1000, "href" => OC_Helper::linkToRoute( "settings_settings" ), "name" => $l->t("Settings"), "icon" => OC_Helper::imagePath( "settings", "settings.svg" ));
+ }
//SubAdmins are also allowed to access user management
if(OC_SubAdmin::isSubAdmin(OC_User::getUser())) {
@@ -395,8 +397,9 @@ class OC_App{
}
foreach(OC::$APPSROOTS as $dir) {
- if(isset($dir['writable']) && $dir['writable']===true)
+ if(isset($dir['writable']) && $dir['writable']===true) {
return $dir['path'];
+ }
}
OC_Log::write('core', 'No application directories are marked as writable.', OC_Log::ERROR);