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 7aaf9740..f6ba4708 100755
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -119,10 +119,10 @@ class Database {
119 $query = $this->executeQuery($sql, array()); 119 $query = $this->executeQuery($sql, array());
120 } 120 }
121 121
122 public function install($login, $password) 122 public function install($login, $password, $email = '')
123 { 123 {
124 $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)'; 124 $sql = 'INSERT INTO users ( username, password, name, email) VALUES (?, ?, ?, ?)';
125 $params = array($login, $password, $login, ' '); 125 $params = array($login, $password, $login, $email);
126 $query = $this->executeQuery($sql, $params); 126 $query = $this->executeQuery($sql, $params);
127 127
128 $sequence = ''; 128 $sequence = '';