Skip to content

Commit 9fb379c

Browse files
committed
Remove unused $sidx, $sord
1 parent 640a40e commit 9fb379c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

main/inc/ajax/model.ajax.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -543,16 +543,16 @@ function getWhereClause($col, $oper, $val)
543543
break;
544544
case 'get_work_teacher':
545545
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
546-
$count = getWorkListTeacher(0, $limit, $sidx, $sord, $whereCondition, true);
546+
$count = getWorkListTeacher(0, $limit, null, null, $whereCondition, true);
547547
break;
548548
case 'get_work_student':
549549
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
550-
$count = getWorkListStudent(0, $limit, $sidx, $sord, $whereCondition, true);
550+
$count = getWorkListStudent(0, $limit, null, null, $whereCondition, true);
551551
break;
552552
case 'get_all_work_student':
553553
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
554554
$withResults = isset($_REQUEST['with_results']) ? (int) $_REQUEST['with_results'] : 0;
555-
$count = getAllWorkListStudent(0, $limit, $sidx, $sord, $whereCondition, true, $withResults);
555+
$count = getAllWorkListStudent(0, $limit, null, null, $whereCondition, true, $withResults);
556556
break;
557557
case 'get_work_user_list_all':
558558
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
@@ -594,8 +594,8 @@ function getWhereClause($col, $oper, $val)
594594
$count = get_work_user_list(
595595
0,
596596
$limit,
597-
$sidx,
598-
$sord,
597+
null,
598+
null,
599599
$work_id,
600600
$whereCondition,
601601
null,
@@ -605,8 +605,8 @@ function getWhereClause($col, $oper, $val)
605605
$count = get_work_user_list_from_documents(
606606
0,
607607
$limit,
608-
$sidx,
609-
$sord,
608+
null,
609+
null,
610610
$work_id,
611611
api_get_user_id(),
612612
$whereCondition,
@@ -1361,6 +1361,7 @@ function getWhereClause($col, $oper, $val)
13611361
'actions',
13621362
];
13631363
$sidx = in_array($sidx, $columns) ? $sidx : 'title';
1364+
13641365
$result = getWorkListTeacher(
13651366
$start,
13661367
$limit,

0 commit comments

Comments
 (0)