Undefined index: sendnow when adding groups by CSV
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Cecilia Vela Gurovic |
Bug Description
Version: 1.9
I got the following warning when adding groups via CSV
[WAR] 48 (lib/group.php:438) Undefined index: sendnow
Call stack (most recent first):
log_message(
error(8, "Undefined index: sendnow", "/home/
group_create(
uploadcsv_
call_user_
Pieform-
Pieform:
pieform(array(size 2)) at /home/sonn/
This won't stop adding groups
Solution:
Change the code at the line 438 in htdocs/
'sendnow' => $data['sendnow'],
to
'sendnow' => isset($
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Cannot reproduce bug:
This was fixed in lib/group.php file
by lines 411
if (!isset( $data[' sendnow' ])) {
$data[ 'sendnow' ] = null;
}
and 445 data['sendnow' ]) ? $data['sendnow'] : null,
'sendnow' => isset($