static function isGrader($userid, $groupid) { $qry = 'SELECT gg.userid' . ' FROM grades_group gg' . ' where gg.userid=' . $userid . ' and gg.groupid =' . $groupid; $grGroup = new Gradesgroup(); $grGroup->query($qry); if ($grGroup->fetch()) { $result = true; } else { $result = false; } $grGroup->free(); return $result; }