@@ -397,8 +397,7 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common | |||
} | |||
if ($this->fix_assoc_fields_names || | |||
$this->options['portability'] & MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES) | |||
{ | |||
$this->options['portability'] & MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES) { | |||
$this->connection->exec("PRAGMA short_column_names = 1"); | |||
$this->fix_assoc_fields_names = true; | |||
} |
@@ -130,8 +130,7 @@ class OC_Archive_TAR extends OC_Archive{ | |||
if( $file == $header['filename'] | |||
or $file.'/' == $header['filename'] | |||
or '/'.$file.'/' == $header['filename'] | |||
or '/'.$file == $header['filename']) | |||
{ | |||
or '/'.$file == $header['filename']) { | |||
return $header; | |||
} | |||
} |
@@ -524,8 +524,7 @@ class OC{ | |||
} | |||
$file_ext = substr($param['file'], -3); | |||
if ($file_ext != 'php' | |||
|| !self::loadAppScriptFile($param)) | |||
{ | |||
|| !self::loadAppScriptFile($param)) { | |||
header('HTTP/1.0 404 Not Found'); | |||
} | |||
} | |||
@@ -595,8 +594,7 @@ class OC{ | |||
if(!isset($_COOKIE["oc_remember_login"]) | |||
|| !isset($_COOKIE["oc_token"]) | |||
|| !isset($_COOKIE["oc_username"]) | |||
|| !$_COOKIE["oc_remember_login"]) | |||
{ | |||
|| !$_COOKIE["oc_remember_login"]) { | |||
return false; | |||
} | |||
OC_App::loadApps(array('authentication')); |
@@ -16,8 +16,7 @@ if(OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) { | |||
$userstatus = 'subadmin'; | |||
} | |||
if(OC_User::getUser() === $username) { | |||
if (OC_User::checkPassword($username, $oldPassword)) | |||
{ | |||
if (OC_User::checkPassword($username, $oldPassword)) { | |||
$userstatus = 'user'; | |||
} else { | |||
if (!OC_Util::isUserVerified()) { |
@@ -12,8 +12,7 @@ | |||
<?php | |||
$url=OC_Helper::linkTo( "settings", "help.php" ).'?page='; | |||
$pageNavi=OC_Util::getPageNavi($_['pagecount'], $_['page'], $url); | |||
if($pageNavi) | |||
{ | |||
if($pageNavi) { | |||
$pageNavi->printPage(); | |||
} | |||
?> |