use wrapped database execute function

git-svn-id: file:///home/shish/svn/shimmie2/trunk@129 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-05-23 22:19:12 +00:00
parent 6bbe00304b
commit 6c26fa0fc1
11 changed files with 30 additions and 32 deletions

View File

@@ -31,8 +31,7 @@ class User {
global $database;
$yn = $enabled ? 'Y' : 'N';
$database->db->Execute("UPDATE users SET enabled=? WHERE id=?",
array($yn, $this->id));
$database->Execute("UPDATE users SET enabled=? WHERE id=?", array($yn, $this->id));
}
public function is_admin() {
@@ -43,8 +42,7 @@ class User {
global $database;
$yn = $admin ? 'Y' : 'N';
$database->db->Execute("UPDATE users SET admin=? WHERE id=?",
array($yn, $this->id));
$database->Execute("UPDATE users SET admin=? WHERE id=?", array($yn, $this->id));
}
public function get_days_old() {