Commit b46cf758 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warnings when dragging a new groupmembers block


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 27374dbf
......@@ -53,9 +53,9 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype {
global $USER;
$configdata = $instance->get('configdata');
$rows = $configdata['rows'] ? $configdata['rows'] : 1;
$columns = $configdata['columns'] ? $configdata['columns'] : 6;
$order = $configdata['order'] ? $configdata['order'] : 'latest';
$rows = isset($configdata['rows']) ? $configdata['rows'] : 1;
$columns = isset($configdata['columns']) ? $configdata['columns'] : 6;
$order = isset($configdata['order']) ? $configdata['order'] : 'latest';
$groupid = $instance->get_view()->get('group');
require_once('searchlib.php');
......@@ -98,14 +98,14 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype {
'type' => 'select',
'title' => get_string('options_rows_title', 'blocktype.groupmembers'),
'description' => get_string('options_rows_desc', 'blocktype.groupmembers'),
'defaultvalue' => $configdata['rows'] ? $configdata['rows'] : 1,
'defaultvalue' => isset($configdata['rows']) ? $configdata['rows'] : 1,
'options' => $options,
),
'columns' => array(
'type' => 'select',
'title' => get_string('options_columns_title', 'blocktype.groupmembers'),
'description' => get_string('options_columns_desc', 'blocktype.groupmembers'),
'defaultvalue' => $configdata['columns'] ? $configdata['columns'] : 6,
'defaultvalue' => isset($configdata['columns']) ? $configdata['columns'] : 6,
'options' => $options,
),
'order' => array(
......
Supports Markdown
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