@@ -281,17 +281,17 @@ |
||
| 281 | 281 | * @throws ShareTokenNotFoundException |
| 282 | 282 | */ |
| 283 | 283 | public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow { |
| 284 | - if ($this->get($prefix . 'token', $data) === '') { |
|
| 284 | + if ($this->get($prefix.'token', $data) === '') { |
|
| 285 | 285 | throw new ShareTokenNotFoundException(); |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | - $this->setShareId($this->getInt($prefix . 'share_id', $data)); |
|
| 289 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
| 290 | - $this->setSingleId($this->get($prefix . 'single_id', $data)); |
|
| 291 | - $this->setMemberId($this->get($prefix . 'member_id', $data)); |
|
| 292 | - $this->setToken($this->get($prefix . 'token', $data)); |
|
| 293 | - $this->setPassword($this->get($prefix . 'password', $data)); |
|
| 294 | - $this->setAccepted($this->getInt($prefix . 'accepted', $data, IShare::STATUS_PENDING)); |
|
| 288 | + $this->setShareId($this->getInt($prefix.'share_id', $data)); |
|
| 289 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
| 290 | + $this->setSingleId($this->get($prefix.'single_id', $data)); |
|
| 291 | + $this->setMemberId($this->get($prefix.'member_id', $data)); |
|
| 292 | + $this->setToken($this->get($prefix.'token', $data)); |
|
| 293 | + $this->setPassword($this->get($prefix.'password', $data)); |
|
| 294 | + $this->setAccepted($this->getInt($prefix.'accepted', $data, IShare::STATUS_PENDING)); |
|
| 295 | 295 | |
| 296 | 296 | return $this; |
| 297 | 297 | } |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | |
| 154 | 154 | $share->setShareToken($shareToken); |
| 155 | 155 | } catch (Exception $e) { |
| 156 | - \OC::$server->getLogger()->log(3, '>>>> e ' . $e->getMessage() . ' ' . get_class($e)); |
|
| 156 | + \OC::$server->getLogger()->log(3, '>>>> e '.$e->getMessage().' '.get_class($e)); |
|
| 157 | 157 | $share = null; |
| 158 | 158 | } |
| 159 | 159 | } |