total_record
This commit is contained in:
@@ -121,14 +121,14 @@ class ResultFormatter extends Model
|
||||
switch ($in["action"]) {
|
||||
|
||||
case WRENCHBOARD_PROMOADMIN_GETLIST:
|
||||
$total = $out["sum_total_record"];
|
||||
$total = $out["total_record"];
|
||||
$res = array(
|
||||
"status" => $out["status"],
|
||||
"total_record" => $total,
|
||||
"internal_return" => $out["internal_return"],
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i <= $total; $i++) {
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$res["result_list"][] = array(
|
||||
"firstname" => $out["firstname_${key}"],
|
||||
|
||||
Reference in New Issue
Block a user