Skip to content

Commit

Permalink
MDL-26778 Completion unit tests broken by earlier change
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed May 5, 2011
1 parent 8351ce1 commit a09897b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/completionlib.php
Expand Up @@ -603,8 +603,8 @@ function internal_get_state($cm, $userid, $current) {
* @return void
*/
public function set_module_viewed($cm, $userid=0) {
global $PAGE;
if ($PAGE->headerprinted) {
global $PAGE, $UNITTEST;
if ($PAGE->headerprinted && empty($UNITTEST->running)) {
debugging('set_module_viewed must be called before header is printed',
DEBUG_DEVELOPER);
}
Expand Down

0 comments on commit a09897b

Please sign in to comment.