aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Database.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Database.class.php')
-rwxr-xr-xinc/poche/Database.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index dfd7ae34..b5dd2120 100755
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -117,10 +117,10 @@ class Database {
117 $query = $this->executeQuery($sql, array()); 117 $query = $this->executeQuery($sql, array());
118 } 118 }
119 119
120 public function install($login, $password) 120 public function install($login, $password, $email = '')
121 { 121 {
122 $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)'; 122 $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)';
123 $params = array($login, $password, $login, ' '); 123 $params = array($login, $password, $login, $email);
124 $query = $this->executeQuery($sql, $params); 124 $query = $this->executeQuery($sql, $params);
125 125
126 $sequence = ''; 126 $sequence = '';