Show
Ignore:
Timestamp:
11/27/06 08:26:10 (6 years ago)
Author:
benoitg
Message:

Fix undefined variable notice in ContentGroup?.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content/ContentGroup/ContentGroup.php

    r1128 r1143  
    570570                        $allow_repeat = $this->getAllowRepeat(); 
    571571                        if ($allow_repeat == 'NO') { 
    572                                 $sql_repeat .= "AND content_group_element_id NOT IN (SELECT content_id FROM content_display_log WHERE user_id = '$user_id') \n"; 
     572                                $sql_repeat = "AND content_group_element_id NOT IN (SELECT content_id FROM content_display_log WHERE user_id = '$user_id') \n"; 
    573573                        } 
    574574                        elseif ($allow_repeat == 'ONCE_PER_NODE') { 
    575                                 $sql_repeat .= "AND content_group_element_id NOT IN (SELECT content_id FROM content_display_log WHERE user_id = '$user_id' AND  node_id = '$node_id') \n"; 
     575                                $sql_repeat = "AND content_group_element_id NOT IN (SELECT content_id FROM content_display_log WHERE user_id = '$user_id' AND  node_id = '$node_id') \n"; 
    576576                        } else { 
    577577                                $sql_repeat = null;