fixed notice-message

This commit is contained in:
agrabs 2008-05-17 14:11:18 +00:00
parent 1c57ce2539
commit b9fb72f7af

View File

@ -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++;