Mercurial > hg > fapweb
changeset 749:56dc64256d31
Fix a silly bug in entry updates.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 20 Nov 2014 08:00:22 +0200 |
parents | e0431e12f3ea |
children | e46f43a8b8dd |
files | admajax.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Thu Nov 20 07:59:20 2014 +0200 +++ b/admajax.php Thu Nov 20 08:00:22 2014 +0200 @@ -1643,7 +1643,7 @@ else if ($type == "entry") { - if (($compo = stFetchSQL("SELECT * FROM compos WHERE id=".$compo_id)) === FALSE) + if (($compo = stFetchSQL(stPrepareSQL("SELECT * FROM compos WHERE id=%D", "compo_id"))) === FALSE) stError("No such compo ID."); else if (stValidateRequestEntryData($compo_id, TRUE, $compo["ctype"]))