# HG changeset patch # User Matti Hamalainen # Date 1415294623 -7200 # Node ID 61a1575306d3af7fe987bbf2575f5c0ba310b0a1 # Parent 971c996f950066216d778d415abb0a40fb7d630c Slight cleanups. diff -r 971c996f9500 -r 61a1575306d3 admajax.php --- 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 "
". @@ -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))