| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | protected function role_exists($role) |
||
| 43 | { |
||
| 44 | $sql = 'SELECT role_id |
||
| 45 | FROM ' . ACL_ROLES_TABLE . " |
||
| 46 | WHERE role_name = '" . $this->db->sql_escape($role) . "'"; |
||
| 47 | $result = $this->db->sql_query_limit($sql, 1); |
||
| 48 | $role_id = $this->db->sql_fetchfield('role_id'); |
||
| 49 | $this->db->sql_freeresult($result); |
||
| 50 | return $role_id; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |