Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/lookup-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-07 15:32:10 +0300
committerGitHub <noreply@github.com>2017-09-07 15:32:10 +0300
commit3680b66296511534cc7afd65788ef509a72e0276 (patch)
tree1bf27264e5d198b2ce63155345028609d403d884
parent3cf22a3b47ed6de9b186e862558cc7d2ee815c41 (diff)
parent6509fb1ef1dad3d0990277b2e1615ab3f6e636d5 (diff)
Merge pull request #18 from nextcloud/search-uid
store uid
-rw-r--r--server/lib/UserManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/UserManager.php b/server/lib/UserManager.php
index 1b55f8a..3d1759e 100644
--- a/server/lib/UserManager.php
+++ b/server/lib/UserManager.php
@@ -217,7 +217,7 @@ LIMIT ' . $limit);
$id = $this->db->lastInsertId();
$stmt->closeCursor();
- $fields = ['name', 'email', 'address', 'website', 'twitter', 'phone', 'twitter_signature', 'website_signature'];
+ $fields = ['name', 'email', 'address', 'website', 'twitter', 'phone', 'twitter_signature', 'website_signature', 'userid'];
foreach ($fields as $field) {
if (!isset($data[$field]) || $data[$field] === '') {
@@ -249,7 +249,7 @@ LIMIT ' . $limit);
$stmt->bindParam(':timestamp', $timestamp, \PDO::PARAM_INT);
$stmt->execute();
$stmt->closeCursor();
- $fields = ['name', 'email', 'address', 'website', 'twitter', 'phone', 'twitter_signature', 'website_signature'];
+ $fields = ['name', 'email', 'address', 'website', 'twitter', 'phone', 'twitter_signature', 'website_signature', 'userid'];
$stmt = $this->db->prepare('SELECT * FROM store WHERE userId = :userId');
$stmt->bindParam(':userId', $id, \PDO::PARAM_INT);