@@ 2448-2453 (lines=6) @@ | ||
2445 | ||
2446 | $arr = array(); |
|
2447 | $result = $GLOBALS['xoopsDB']->query($sql); |
|
2448 | while (false !== (list($lid, $cid, $published) = $GLOBALS['xoopsDB']->fetchRow($result))) { |
|
2449 | if (true === XoopstubeUtility::xtubeCheckGroups()) { |
|
2450 | ++$count; |
|
2451 | $published_date = ($published > $published_date) ? $published : $published_date; |
|
2452 | } |
|
2453 | } |
|
2454 | ||
2455 | $child_count = 0; |
|
2456 | if ($get_child === 1) { |
|
@@ 2478-2484 (lines=7) @@ | ||
2475 | . ')) GROUP BY a.lid, a.published, a.cid'; |
|
2476 | ||
2477 | $result2 = $GLOBALS['xoopsDB']->query($query2); |
|
2478 | while (false !== (list($lid, $published) = $GLOBALS['xoopsDB']->fetchRow($result2))) { |
|
2479 | if ($published === 0) { |
|
2480 | continue; |
|
2481 | } |
|
2482 | $published_date = ($published > $published_date) ? $published : $published_date; |
|
2483 | ++$child_count; |
|
2484 | } |
|
2485 | } |
|
2486 | } |
|
2487 | $info['count'] = $count + $child_count; |