includes/paths.php
changeset 74 68469a95658d
parent 73 0a74676a2f2f
child 76 608dee512bf0
equal deleted inserted replaced
73:0a74676a2f2f 74:68469a95658d
   851     while ( $row = $db->fetchrow() )
   851     while ( $row = $db->fetchrow() )
   852     {
   852     {
   853       $group_list[] = $row['pg_id'];
   853       $group_list[] = $row['pg_id'];
   854     }
   854     }
   855     
   855     
       
   856     $db->free_result();
       
   857     
   856     // Static-page groups
   858     // Static-page groups
   857     $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g
   859     $q = $db->sql_query('SELECT g.pg_id FROM '.table_prefix.'page_groups AS g
   858                            LEFT JOIN '.table_prefix.'page_group_members AS m
   860                            LEFT JOIN '.table_prefix.'page_group_members AS m
   859                              ON ( g.pg_id = m.pg_id )
   861                              ON ( g.pg_id = m.pg_id )
   860                            WHERE m.page_id=\'' . $page_id . '\' AND m.namespace=\'' . $namespace . '\'
   862                            WHERE m.page_id=\'' . $page_id . '\' AND m.namespace=\'' . $namespace . '\'