Skip to content

Commit

Permalink
5555: set atutor_member_row query to one row, and added not to follow…
Browse files Browse the repository at this point in the history
…ing if statement
  • Loading branch information
atutorlangs committed Nov 27, 2014
1 parent 832069c commit e3422bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/_standard/basiclti/launch/loadrows.php
@@ -1,7 +1,7 @@
<?php
// THIS FILE APPEARS TO BE UNUSED, TEST WITH IMS VALIDATOR
// exit;
// Needs $content_id and $member_id for the BasicLTI placement
// Needs $content_id and $member_id for the BasicLTI placement
/*$sql = "SELECT * FROM ".TABLE_PREFIX."basiclti_content
WHERE content_id=".$content_id;
$instanceresult = mysql_query($sql, $db);
Expand Down Expand Up @@ -79,9 +79,9 @@
$atutor_member_row = mysql_fetch_assoc($memberresult);
*/
$sql = "SELECT * FROM %smembers WHERE member_id= %d";
$atutor_member_row = queryDB($sql, array(TABLE_PREFIX, $member_id));
$atutor_member_row = queryDB($sql, array(TABLE_PREFIX, $member_id), TRUE);

if ( $atutor_member_row ) {
if ( !$atutor_member_row ) {
loadError("Course definition missing\n");
exit;
}
Expand Down

0 comments on commit e3422bb

Please sign in to comment.