datatable correction
This commit is contained in:
+2
-1
@@ -237,7 +237,7 @@ final class Table {
|
||||
$id_draw = intval($this->__cpa->Get("draw", 0));
|
||||
$i_start = intval($this->__cpa->Get("start", 0));
|
||||
$i_length = intval($this->__cpa->Get("length", 0));
|
||||
$i_order = intval($this->__cpa->Get("order", 0));
|
||||
$i_order = $this->__cpa->Get("order", 0);
|
||||
|
||||
if ($id_draw > 0) {
|
||||
$t_order = "ASC";
|
||||
@@ -257,6 +257,7 @@ final class Table {
|
||||
|
||||
$adata['data'] = [];
|
||||
$this->__cdb->Query("SELECT ".$this->__tfield." FROM ".$this->__ttable.$this->__twhere.$sql_order.$sql_limit);
|
||||
$adata['sql'] = "SELECT ".$this->__tfield." FROM ".$this->__ttable.$this->__twhere.$sql_order.$sql_limit;
|
||||
while ($this->__cdb->Next()) {
|
||||
$abaris = [];
|
||||
$aoption = ['button'=>[]];
|
||||
|
||||
Reference in New Issue
Block a user