mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
Gem Viewer. General cleanup
This commit is contained in:
@@ -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') {
|
||||
|
Reference in New Issue
Block a user