Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Grabs committed Apr 30, 2010
1 parent a48bf07 commit 194dd27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mod/feedback/complete.php
Expand Up @@ -368,6 +368,7 @@

unset($startitem);
$itemnr = $DB->count_records_select('feedback_item', 'feedback = ? AND hasvalue = 1 AND position < ?', array($feedback->id, $startposition));
$lastbreakposition = 0;
foreach($feedbackitems as $feedbackitem){
if(!isset($startitem)) {
//avoid showing double pagebreaks
Expand Down
1 change: 1 addition & 0 deletions mod/feedback/complete_guest.php
Expand Up @@ -326,6 +326,7 @@

unset($startitem);
$itemnr = $DB->count_records_select('feedback_item', 'feedback = ? AND hasvalue = 1 AND position < ?', array($feedback->id, $startposition));
$lastbreakposition = 0;
foreach($feedbackitems as $feedbackitem){
if(!isset($startitem)) {
//avoid showing double pagebreaks
Expand Down
2 changes: 1 addition & 1 deletion mod/feedback/lib.php
Expand Up @@ -910,8 +910,8 @@ function feedback_items_from_template($feedback, $templateid, $deleteold = false
$DB->delete_records('feedback_tracking', array('feedback'=>$feedback->id));
$DB->delete_records('feedback_completed', array('feedback'=>$feedback->id));
$DB->delete_records('feedback_completedtmp', array('feedback'=>$feedback->id));
$positionoffset = 0;
}
$positionoffset = 0;
} else {
//if the old items are kept the new items will be appended
//therefor the new position has an offset
Expand Down

0 comments on commit 194dd27

Please sign in to comment.