diff options
author | Malf Furious <m@lfurio.us> | 2017-02-06 01:18:10 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-02-06 01:18:10 -0500 |
commit | 476192ca8fa2053af74a7e7f5e4006c83c8d0cad (patch) | |
tree | 69c73b211da59924a19a89d45e45d1e9692b5385 /app/class/object.class.php | |
parent | 56a6dda13bb85b25f590fc8a64535bb53c3c2fd2 (diff) | |
download | scrott-476192ca8fa2053af74a7e7f5e4006c83c8d0cad.tar.gz scrott-476192ca8fa2053af74a7e7f5e4006c83c8d0cad.zip |
Update table class tree to use static database references
Diffstat (limited to 'app/class/object.class.php')
-rw-r--r-- | app/class/object.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php index 8ad17f5..6a77b37 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -76,8 +76,8 @@ class object extends table public function getMembers() : array { $memb = array(); - $query = "SELECT member FROM members WHERE guid = '" . $this->db->esc($this->guid) . "'"; - $res = $this->db->query($query); + $query = "SELECT member FROM members WHERE guid = '" . database::esc($this->guid) . "'"; + $res = database::query($query); foreach ($res as $m) $memb[] = new user($m['member']); |