diff --git a/ajax/refresh_table.php b/ajax/refresh_table.php index 2f90d32..8955d4a 100644 --- a/ajax/refresh_table.php +++ b/ajax/refresh_table.php @@ -1,11 +1,4 @@ message = array(); $std->error = true; - if (isset($OrderClass, $UserClass)) { + - $buy_list = $OrderClass->get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy - $sell_list = $OrderClass->get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell + $buy_list = get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy + $sell_list = get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell $std->buys = $buy_list; $std->sells = $sell_list; $std->error = false; - } + echo json_encode($std); } else { return false; -} \ No newline at end of file +}