Code Duplication    Length = 7-13 lines in 2 locations

plugin/bbb/lib/bbb.lib.php 2 locations

@@ 660-666 (lines=7) @@
657
                ),
658
            );
659
660
            if ($this->hasGroupSupport()) {
661
                $conditions = array(
662
                    'where' => array(
663
                        'c_id = ? AND session_id = ? AND group_id = ? ' => array($courseId, $sessionId, $groupId)
664
                    )
665
                );
666
            }
667
        }
668
669
        if (!empty($dateRange)) {
@@ 955-967 (lines=13) @@
952
            ),
953
        );
954
955
        if ($this->hasGroupSupport()) {
956
            $groupId = api_get_group_id();
957
            $conditions = array(
958
                'where' => array(
959
                    'c_id = ? AND session_id = ? AND group_id = ? AND status = 1 AND access_url = ?' => array(
960
                        $courseId,
961
                        $sessionId,
962
                        $groupId,
963
                        $this->accessUrl
964
                    ),
965
                ),
966
            );
967
        }
968
969
        if ($this->isGlobalConferencePerUserEnabled()) {
970
            $conditions = array(