Mercurial > hg > fapweb
diff admajax.php @ 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 | b83b9dd20b69 |
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)