diff options
author | tcit <tcit@tcit.fr> | 2014-07-25 08:42:03 +0200 |
---|---|---|
committer | tcit <tcit@tcit.fr> | 2014-07-25 08:42:03 +0200 |
commit | 046b9316244c7a3a19446b2425d2370a26246af0 (patch) | |
tree | f1e126a7590b32767ab22cb372ff474eab70836d /inc/poche/Database.class.php | |
parent | 2b58426b2d4a7f1585d5d7667c0a4fbea4cd29dd (diff) | |
download | wallabag-046b9316244c7a3a19446b2425d2370a26246af0.tar.gz wallabag-046b9316244c7a3a19446b2425d2370a26246af0.tar.zst wallabag-046b9316244c7a3a19446b2425d2370a26246af0.zip |
added email field
Diffstat (limited to 'inc/poche/Database.class.php')
-rwxr-xr-x | inc/poche/Database.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 2c80b64b..8b52a9df 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php | |||
@@ -113,10 +113,10 @@ class Database { | |||
113 | $query = $this->executeQuery($sql, array()); | 113 | $query = $this->executeQuery($sql, array()); |
114 | } | 114 | } |
115 | 115 | ||
116 | public function install($login, $password) | 116 | public function install($login, $password, $email = '') |
117 | { | 117 | { |
118 | $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)'; | 118 | $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)'; |
119 | $params = array($login, $password, $login, ' '); | 119 | $params = array($login, $password, $login, $email); |
120 | $query = $this->executeQuery($sql, $params); | 120 | $query = $this->executeQuery($sql, $params); |
121 | 121 | ||
122 | $sequence = ''; | 122 | $sequence = ''; |