mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
fixed notice-message
This commit is contained in:
parent
1c57ce2539
commit
b9fb72f7af
@ -113,8 +113,12 @@
|
||||
$feedbackitems = get_records('feedback_item', 'feedback', $feedback->id, 'position');
|
||||
if(is_array($feedbackitems)){
|
||||
$feedbackitems = array_values($feedbackitems);
|
||||
$lastitem = $feedbackitems[count($feedbackitems)-1];
|
||||
$lastposition = $lastitem->position;
|
||||
if(count($feedbackitems) > 0) {
|
||||
$lastitem = $feedbackitems[count($feedbackitems)-1];
|
||||
$lastposition = $lastitem->position;
|
||||
}else {
|
||||
$lastposition = 0;
|
||||
}
|
||||
}
|
||||
$lastposition++;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user