File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44require_once ("$ CFG ->dirroot /calendar/lib.php " );
55
66define ('WWASSIGNMENT_DEBUG ' ,0 );
7- // define('WWASSIGNMENT_DEBUG',1);
7+ //define('WWASSIGNMENT_DEBUG',1);
88define ('WWASSIGNMENT_TRACE ' ,0 );
99//define('WWASSIGNMENT_TRACE',1);
1010
@@ -366,7 +366,14 @@ function _wwassignment_update_dirty_sets() { // update grades for all instances
366366// //list($insql,$inparams) = $DB->get_in_or_equal($idValues,SQL_PARAMS_NAMED);
367367 $ arraykeys = array_keys ($ wwmodtimes );
368368// //debugLog("array_keys ".print_r($arraykeys,true));
369+ if (count ( $ arraykeys )==0 ) {
370+ traceLog ("-----------------no grades to update ------------------------------- " );
371+ traceLog ("-----------------End _wwassignment_update_dirty_sets--------------- " );
372+ return true ;
373+ }
374+ traceLog ("------ find arraykeys in SQL_PARAMs_NAMEd " );
369375 list ($ insql ,$ inparams ) = $ DB ->get_in_or_equal ($ arraykeys ,SQL_PARAMS_NAMED );
376+
370377// //list($insql, $inparams) = $DB->get_in_or_equal($wwmodtimes,SQL_PARAMS_NAMED);
371378// debugLog("values string: $idValues");
372379// debugLog("last modification times".print_r($wwmodtimes,true));
You can’t perform that action at this time.
0 commit comments