Gem Viewer. General cleanup

This commit is contained in:
color.diff=auto
2021-05-15 01:23:25 -06:00
parent 2cb355ab47
commit f4b232049e
1217 changed files with 641 additions and 971 deletions

View File

@@ -71,9 +71,11 @@ if ($cmd == "getUniqueItem") {
*
* */
if ($cmd == "sortBy") {
$sql = "SELECT `index`, ? FROM uniqueitems WHERE enabled='1' ORDER BY ?";
$sql = "SELECT `index`, `$sort` FROM uniqueitems WHERE enabled='1' ORDER BY ?";
$res = PDO_FetchAll($sql, [$sort]);
//ddump($res);
$html = '';
foreach ($res as $r) {
if ($sort == 'index') {