Merge branch 'master' of gitorious.org:owncloud/owncloud

This commit is contained in:
Tom Needham 2012-05-13 19:42:00 +00:00
commit 82d3fe2e1c
3 changed files with 4 additions and 2 deletions

View File

@ -644,6 +644,7 @@ class MDB2_Schema extends PEAR
if (PEAR::isError($result)) {
return $result;
}
$database_definition['tables'][$table_name]=$table_definition;
}

View File

@ -395,7 +395,8 @@ class OC_DB {
if (PEAR::isError($op)) {
$error = $op->getMessage();
OC_Log::write('core','Failed to update database structure ('.$error.')',OC_Log::FATAL);
$detail = $op->getDebugInfo();
OC_Log::write('core','Failed to update database structure ('.$error.', '.$detail.')',OC_Log::FATAL);
return false;
}
return true;

View File

@ -73,7 +73,7 @@ class OC_JSON{
* Encode and print $data in json format
*/
public static function encodedPrint($data,$setContentType=true){
if(!isset($_SERVER['PATH_INFO'])) {
if(!isset($_SERVER['PATH_INFO']) || $_SERVER['PATH_INFO'] == '') {
if($setContentType){
self::setContentTypeHeader();
}