Commit 52e07650 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Format group creation date nicely for display on group info page.

parent d851e88b
......@@ -34,9 +34,10 @@ require_once(get_config('docroot') . 'interaction/lib.php');
$id = param_integer('id');
if (!$group = get_record('group', 'id', $id, 'deleted', 0)) {
if (!$group = get_record_select('group', 'id = ? AND deleted = 0', array($id), '*, ' . db_format_tsfield('ctime'))) {
throw new GroupNotFoundException("Couldn't find group with id $id");
}
$group->ctime = strftime('%e %B %Y', $group->ctime);
$group->admins = get_column_sql("SELECT member
FROM {group_member}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment