Mercurial > hg > fapweb
changeset 495:87d8f05fcf77
Don't show anything if show_id of entry is 0.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Dec 2013 16:29:01 +0200 |
parents | b84acc29546c |
children | 924eb55a98b6 |
files | showajax.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/showajax.php Sat Dec 07 16:28:37 2013 +0200 +++ b/showajax.php Sat Dec 07 16:29:01 2013 +0200 @@ -226,11 +226,11 @@ $compo_id)); $prev = stFetchSQL(stPrepareSQL( - "SELECT * FROM entries WHERE compo_id=%d AND show_id=%d", + "SELECT * FROM entries WHERE compo_id=%d AND show_id=%d AND show_id<>0", $compo_id, stGetDisplayVar("compoPrevEntry"))); $entry = stFetchSQL(stPrepareSQL( - "SELECT * FROM entries WHERE compo_id=%d AND show_id=%d", + "SELECT * FROM entries WHERE compo_id=%d AND show_id=%d AND show_id<>0", $compo_id, stGetDisplayVar("compoCurrEntry"))); if ($compo !== false)