Do not return unneeded info
This commit is contained in:
parent
c3e7d324c5
commit
c924b6740a
|
@ -182,7 +182,7 @@ class Manager {
|
||||||
*/
|
*/
|
||||||
public function getShare($id) {
|
public function getShare($id) {
|
||||||
$getShare = $this->connection->prepare('
|
$getShare = $this->connection->prepare('
|
||||||
SELECT *
|
SELECT `id`, `remote`, `remote_id`, `share_token`, `name`, `owner`, `user`, `mountpoint`, `accepted`
|
||||||
FROM `*PREFIX*share_external`
|
FROM `*PREFIX*share_external`
|
||||||
WHERE `id` = ? AND `user` = ?');
|
WHERE `id` = ? AND `user` = ?');
|
||||||
$result = $getShare->execute(array($id, $this->uid));
|
$result = $getShare->execute(array($id, $this->uid));
|
||||||
|
@ -424,7 +424,9 @@ class Manager {
|
||||||
* @return array list of open server-to-server shares
|
* @return array list of open server-to-server shares
|
||||||
*/
|
*/
|
||||||
private function getShares($accepted) {
|
private function getShares($accepted) {
|
||||||
$query = 'SELECT * FROM `*PREFIX*share_external` WHERE `user` = ?';
|
$query = 'SELECT `id`, `remote`, `remote_id`, `share_token`, `name`, `owner`, `user`, `mountpoint`, `accepted`
|
||||||
|
FROM `*PREFIX*share_external`
|
||||||
|
WHERE `user` = ?';
|
||||||
$parameters = [$this->uid];
|
$parameters = [$this->uid];
|
||||||
if (!is_null($accepted)) {
|
if (!is_null($accepted)) {
|
||||||
$query .= ' AND `accepted` = ?';
|
$query .= ' AND `accepted` = ?';
|
||||||
|
|
Loading…
Reference in New Issue