Mercurial > hg > fapweb
changeset 413:9eb46567f0aa
If shown entry ID is undefined, don't select anything.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2013 17:42:23 +0200 |
parents | 3e38433fcace |
children | 523dc3e9a3bf |
files | admajax.php |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Thu Dec 05 17:38:57 2013 +0200 +++ b/admajax.php Thu Dec 05 17:42:23 2013 +0200 @@ -235,6 +235,9 @@ stGetDisplayVar("compoID")); $currShowID = stGetDisplayVar("compoCurrEntry"); + if ($currShowID <= 0) + $currShowID = -1; + $str = " ".stGetOptionListStart("ctrlEntryList"); if (($res = stExecSQL($sql)) !== false)