Commit c32673ea authored by Antoine Tenart's avatar Antoine Tenart

\_o< !

parent 77f0bbc6
......@@ -189,13 +189,13 @@ class UVParser
public function get_info_add_group() {
while(true) {
$sql = "SELECT * FROM pedag_groupe WHERE `type` = '".$this->type."' AND `num_groupe` = ".$this->group;
$sql = "SELECT COUNT(*) as nb FROM pedag_groupe WHERE `type` = '".$this->type."' AND `num_groupe` = ".$this->group;
$sql .= " AND `id_uv` = ".$this->id;
$req = new requete($this->db, $sql);
if( $req->is_success() )
if( isset( $req) ) {
if( $req['nb'] > 0 ) {
$this->group++;
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment