Skip to content

Commit

Permalink
Fixed issue #6810: When you add a group to a survey's permissions lis…
Browse files Browse the repository at this point in the history
…t and set the permissions you get a SQL error on the permissions page - patch by jtate
  • Loading branch information
c-schmitz committed Nov 1, 2012
1 parent 7b31682 commit 48b888b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/controllers/admin/surveypermission.php
Expand Up @@ -83,10 +83,9 @@ function index($surveyid)

if(isset($group_ids) && $group_ids[0] != NULL)
{
$group_ids_query = implode(" OR ugid=", $group_ids);
$group_ids_query = implode(",", $group_ids);
unset($group_ids);

$result4 = User_groups::model()->findAll('ugid = :ugid',array(':ugid' => $group_ids_query));
$result4 = User_groups::model()->findAll("ugid IN ($group_ids_query)");

foreach ($result4 as $resul4row)
{
Expand Down

0 comments on commit 48b888b

Please sign in to comment.