diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 01:48:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 01:48:15 +0000 |
commit | 66e0b8ea9dd675a778a5c5777cce547887b2720c (patch) | |
tree | 6a64838f552b37481d92f75bc6979d11b83bc13a /lib/class | |
parent | 0f4a9e4823d6aa92c3974c33f560a4897140dfbd (diff) | |
download | ampache-66e0b8ea9dd675a778a5c5777cce547887b2720c.tar.gz ampache-66e0b8ea9dd675a778a5c5777cce547887b2720c.tar.bz2 ampache-66e0b8ea9dd675a778a5c5777cce547887b2720c.zip |
fixed public registration, added ADD button to the recently played stuff
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/user.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 4708d1c2..3870f910 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -459,12 +459,12 @@ class User { * Use this function to update the validation key * NOTE: crap this doesn't have update_item the humanity of it all */ - function update_validation($new_validation) { + public function update_validation($new_validation) { - $new_validation = sql_escape($new_validation); - $sql = "UPDATE user SET validation='$new_validation',disabled='1' WHERE `id`='$this->id'"; + $new_validation = Dba::escape($new_validation); + $sql = "UPDATE `user` SET `validation`='$new_validation', `disabled`='1' WHERE `id`='" . Dba::escape($this->id) . "'"; + $db_results = Dba::query($sql); $this->validation = $new_validation; - $db_results = mysql_query($sql, dbh()); return $db_results; |