Just another bug...?

Just another bug...?

by Sven Laudel -
Number of replies: 1
Looking thru the error log of my web server, i came about a very suspect error message which results from scheduler:

PHP Notice: FEHLER: ung\xc3\xbcltige Eingabesyntax f\xc3\xbcr ganze Zahl: \xc2\xbb10046,3162\xc2\xab

\n SELECT \n COUNT(*)\n FROM\n mdl_scheduler_slots AS s,\n mdl_scheduler_appointment AS a\n WHERE\n a.slotid = s.id AND\n s.schedulerid = 12 AND\n a.studentid IN ('10046,3162')\n \n \n
  • line 677 of lib/dmllib.php: call to debugging()
  • line 372 of lib/dmllib.php: call to get_recordset_sql()
  • line 335 of mod/scheduler/locallib.php: call to count_records_sql()
  • line 869 of mod/scheduler/teacherview.php: call to scheduler_has_slot()
  • line 129 of mod/scheduler/view.php: call to include()
in /var/www/html/moodle/lib/weblib.php on line 6141, referer:

Valery, maybe you can have a look at it?
Average of ratings: -
In reply to Sven Laudel

Re: Just another bug...?

by Valery Fremaux -
At very start of the function scheduler_has_slots(...) in locallib.php, should be

$userlist = str_replace(',', "','", $userlist);

and not

str_replace(',', "','", $userlist); // does nothing on $userlist.

Fixed and patched.
Thanks.