ich habe ein kleines Problem mit dem folgenden Code:
//****************************************************************
// Function: matchList
//
// Display the match list
//
//****************************************************************
function matchList($option, $database, $access, $itemid) {
global $mosConfig_list_limit;
// Get parameters
$limit = trim(mosGetParam($_REQUEST, 'limit', 0));
$limitstart = trim(mosGetParam($_REQUEST, 'limitstart', 0));
$gameid = trim(mosGetParam($_REQUEST, 'gameid', null));
$leagueid = trim(mosGetParam($_REQUEST, 'leagueid', null));
$srt = trim(mosGetParam($_REQUEST, 'sort', 'ddown'));
// Set up limit
if ($limit == 0 && isset ($mosConfig_list_limit)) {
$limit = $mosConfig_list_limit;
} else {
$limit = $limit == 0 ? 20 : $limit;
}
// Setup where clause for the list.
$xwhere = getMatchListWhere($access, $gameid, $leagueid);
$database->setQuery("SELECT count(matchid) FROM #__cwc_match ".$xwhere);
$total = $database->loadResult();
if ($total setQuery("SELECT count(matchid) FROM #__cwc_match WHERE selected='1' ".$xwhere);
$total = $database->loadResult();
if ($total <= $limit) {
$limitstart = 0;
}
Passiert im Frontend gar nichts die komplette MatchList wird angezeigt.
Wie muss ich den Code richtig ändern damit im Frontend nur die Matches angezeigt werden die auch published sind?
Danke euch schon jetzt
Michael