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 { ...@@ -53,9 +53,9 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype {
global $USER; global $USER;
$configdata = $instance->get('configdata'); $configdata = $instance->get('configdata');
$rows = $configdata['rows'] ? $configdata['rows'] : 1; $rows = isset($configdata['rows']) ? $configdata['rows'] : 1;
$columns = $configdata['columns'] ? $configdata['columns'] : 6; $columns = isset($configdata['columns']) ? $configdata['columns'] : 6;
$order = $configdata['order'] ? $configdata['order'] : 'latest'; $order = isset($configdata['order']) ? $configdata['order'] : 'latest';
$groupid = $instance->get_view()->get('group'); $groupid = $instance->get_view()->get('group');
require_once('searchlib.php'); require_once('searchlib.php');
...@@ -98,14 +98,14 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype { ...@@ -98,14 +98,14 @@ class PluginBlocktypeGroupMembers extends SystemBlocktype {
'type' => 'select', 'type' => 'select',
'title' => get_string('options_rows_title', 'blocktype.groupmembers'), 'title' => get_string('options_rows_title', 'blocktype.groupmembers'),
'description' => get_string('options_rows_desc', '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, 'options' => $options,
), ),
'columns' => array( 'columns' => array(
'type' => 'select', 'type' => 'select',
'title' => get_string('options_columns_title', 'blocktype.groupmembers'), 'title' => get_string('options_columns_title', 'blocktype.groupmembers'),
'description' => get_string('options_columns_desc', '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, 'options' => $options,
), ),
'order' => array( '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