# HG changeset patch # User Matti Hamalainen # Date 1416607031 -7200 # Node ID b97d4b754bc00b13f5a5f48109bb98db20f167ea # Parent 7126403af18f6e9fd3ef23cd847eb4d2e33867e9 Show also empty compos with RFLAG_HIDDEN_COMPOS. diff -r 7126403af18f -r b97d4b754bc0 admajax.php --- a/admajax.php Fri Nov 21 23:56:50 2014 +0200 +++ b/admajax.php Fri Nov 21 23:57:11 2014 +0200 @@ -1389,7 +1389,7 @@ "
\n". " Printable results\n". " Printable full results (shows also disqualified entries)\n". - " Printable FULL results (shows also hidden compos)\n". + " Printable FULL results (shows also hidden and empty compos)\n". "
\n". "
\n". " ".stGetFormTextInput(64, SET_LEN_COMPO_NAME, "", "ncname", "", "")."
\n". diff -r 7126403af18f -r b97d4b754bc0 msite.inc.php --- a/msite.inc.php Fri Nov 21 23:56:50 2014 +0200 +++ b/msite.inc.php Fri Nov 21 23:57:11 2014 +0200 @@ -553,7 +553,8 @@ "WHERE compo_id=".$compo["id"]. (($flags & RFLAG_DISQUALIFIED) ? "" : " AND (entries.flags & ".EFLAG_DISQUALIFIED.")=0"); - if (($nentries = stFetchSQLColumn($sql)) !== FALSE && $nentries > 0) + if (($nentries = stFetchSQLColumn($sql)) !== FALSE && + ($nentries > 0 || ($flags & RFLAG_HIDDEN_COMPOS))) { // Get voting results by mode $sql = stGetCompoResultsSQL($voteKeyMode, $compo, $flags);