Skip to content

Commit

Permalink
Second update from Chris
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Apr 1, 2024
1 parent aeb0dfe commit 5143de1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Core/LTIX.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,6 @@ public static function setupSession($needed=self::ALL, $session_object=null, $re
self::abort_with_error_log('Found issuer, but did not find corresponding deployment: '.htmlentities(U::get($post,'deployment_id')));
}

// Copy the deployment_id into run=time data for later
if ( $LTI13 && U::get($post,'deployment_id') ) {
$row['deployment_id'] = $post['deployment_id'];
}

if ( ! $row || ! U::get($row, 'key_id') ) {
if ( U::get($post,'key') ) { // LTI 1.1
self::abort_with_error_log('Launch could not find key: '.htmlentities(U::get($post,'key')));
Expand All @@ -495,6 +490,11 @@ public static function setupSession($needed=self::ALL, $session_object=null, $re
}
}

// Copy the deployment_id into run=time data for later
if ( $LTI13 && U::get($post,'deployment_id') ) {
$row['deployment_id'] = $post['deployment_id'];
}

$delta = 0;
if ( isset($request_data['oauth_timestamp']) ) {
$server_time = $request_data['oauth_timestamp']+0;
Expand Down

0 comments on commit 5143de1

Please sign in to comment.