mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Don't select all columns for FORMAT_STATUSES
This commit is contained in:
parent
0b9b1757fe
commit
3e8a34f906
1 changed files with 6 additions and 1 deletions
|
|
@ -453,7 +453,12 @@ class Share {
|
|||
}
|
||||
$where .= ' LIMIT '.$limit;
|
||||
}
|
||||
$query = \OC_DB::prepare('SELECT * FROM *PREFIX*share '.$where);
|
||||
if ($format == self::FORMAT_STATUSES) {
|
||||
$select = 'item, share_type';
|
||||
} else {
|
||||
$select = '*';
|
||||
}
|
||||
$query = \OC_DB::prepare('SELECT '.$select.' FROM *PREFIX*share '.$where);
|
||||
$result = $query->execute();
|
||||
$items = array();
|
||||
while ($item = $result->fetchRow()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue