/** * Gets the specifeid fields from the misc table * @param array $fields - fields to get, null gets the lot * @param string $errorString - error to generate on failure * @param string $id - optinoal user id * @return object */ protected function getMisc($fields, $errorString, $id = "") { if ($id == "") { $where["UserId"] = $this->id; } else { $where["UserId"] = $id; } if (is_Array($fields)) { $row = $this->db->getf($this->cfg->userMiscTable, $fields, $where, $errorString); } else { $row = $this->db->get($this->cfg->userMiscTable, $where, $errorString); } return $row; }