$lastpingsearch = ($CFG->chat_method == 'sockets') ? '': 'AND cu.lastping > \''.$timeold.'\'';
if (!$chatusers = get_records_sql("SELECT u.id, cu.chatid, u.firstname, u.lastname
- FROM {$CFG->prefix}chat_users as cu,
- {$CFG->prefix}chat as ch,
- {$CFG->prefix}user as u
+ FROM {$CFG->prefix}chat_users cu,
+ {$CFG->prefix}chat ch,
+ {$CFG->prefix}user u
WHERE cu.userid = u.id
AND cu.chatid = ch.id $lastpingsearch
AND ch.course = '$course->id'
/// Delete all the associated information
// get all the records in this data
- $sql = 'SELECT c.* FROM '.$CFG->prefix.'data_records as r LEFT JOIN '.
- $CFG->prefix.'data_content as c ON c.recordid = r.id WHERE r.dataid = '.$id;
+ $sql = 'SELECT c.* FROM '.$CFG->prefix.'data_records r LEFT JOIN '.
+ $CFG->prefix.'data_content c ON c.recordid = r.id WHERE r.dataid = '.$id;
if ($contents = get_records_sql($sql)){
// set all previous "in progress" attempts at this quiz to "abandoned"
$db->Execute("
UPDATE
- {$CFG->prefix}hotpot_attempts as a
+ {$CFG->prefix}hotpot_attempts a
SET
a.timefinish = $timefinish,
a.status = '".HOTPOT_STATUS_ABANDONED."',