Mercurial > hg > fapweb
changeset 666:61a1575306d3
Slight cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 06 Nov 2014 19:23:43 +0200 |
parents | 971c996f9500 |
children | 4fdb61f40946 |
files | admajax.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Wed Nov 05 23:34:07 2014 +0200 +++ b/admajax.php Thu Nov 06 19:23:43 2014 +0200 @@ -1159,7 +1159,6 @@ foreach (stExecSQL($sql) as $item) { - // This funny code is to ensure that the cells are of uniform width echo "<div class=\"".stGetVoteKeyClass($item). "\" id=\"vkey".$item["id"]."\">". @@ -1498,9 +1497,10 @@ if (($val = stGetRequestItem($item["key"], FALSE)) !== FALSE) { $sql = "UPDATE settings SET ".stGetSettingSQL($item, $val)." WHERE key=".$db->quote($item["key"]); - stExecSQLCond($sql, "OK, setting updated."); + stExecSQL($sql); } stDBCommitTransaction(); + stSetStatus(200, "Updated settings."); } else if ($type == "attendees" && stValidateRequestUserData(TRUE, $id))