Merge pull request #272 from owncloud/master-query-fix
Respect recent master changes. Fixes #271
This commit is contained in:
		
						commit
						5c66d665a8
					
				@ -36,6 +36,7 @@ class UserController extends Controller{
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		\OCP\JSON::success();
 | 
			
		||||
		exit();
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public static function rename($args){
 | 
			
		||||
 | 
			
		||||
@ -208,7 +208,7 @@ class File {
 | 
			
		||||
		
 | 
			
		||||
		$query = \OC_DB::prepare('SELECT `*PREFIX*share`.`id`, `item_type`, `*PREFIX*share`.`parent`, `uid_owner`, '
 | 
			
		||||
							.'`share_type`, `share_with`, `file_source`, `path`, `file_target`, '
 | 
			
		||||
							.'`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
 | 
			
		||||
							.'`*PREFIX*share`.`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
 | 
			
		||||
							.'`name`, `mtime`, `mimetype`, `mimepart`, `size`, `encrypted`, `etag`' 
 | 
			
		||||
							.'FROM `*PREFIX*share` INNER JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `item_type` = \'file\' ' . $where);
 | 
			
		||||
		$result = $query->execute($values);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user