Fix annoying error in log

This commit is contained in:
Tom Needham 2012-04-14 12:31:48 +00:00
parent 9b1c881ca8
commit c069aa62a4
1 changed files with 151 additions and 150 deletions

View File

@ -91,7 +91,8 @@ class OC_Migrate{
if( self::$exporttype == 'user' ){
// Check user exists
if( !is_null($uid) ){
if( !OC_User_Database::userExists( $uid ) ){
$db = new OC_User_Database;
if( !$db->userExists( $uid ) ){
OC_Log::write('migration', 'User: '.$uid.' is not in the database and so cannot be exported.', OC_Log::ERROR);
return json_encode( array( 'success' => false ) );
}