Skip to content

Commit

Permalink
Merge pull request #11 from tedwards/anonReg
Browse files Browse the repository at this point in the history
Fixes bug in creation of anonymous registrations
  • Loading branch information
brianrogers authored May 24, 2017
2 parents 4917467 + 9b97b9e commit e05b8f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scormcloud/db/scormclouddatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ public static function get_row() {
$i++;
}

$comma = ', ';
$separator = 'AND ';
if ($first) {
$comma = '';
$separator = '';
$first = false;
}

$whereClause .= $comma.$col.' = '.$format;
$whereClause .= $separator.$col.' = '.$format;
$whereValues[] = $val;
}

Expand Down
5 changes: 4 additions & 1 deletion scormcloud/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: troyef, stuartchilds, timedwards
Tags: elearning, learning, scorm, aicc, education, training, cloud
Requires at least: 4.3
Tested up to: 5.6
Stable tag: 1.2.1
Stable tag: 1.2.2

Tap the power of SCORM to deliver and track training right from your WordPress-powered site.

Expand Down Expand Up @@ -48,6 +48,9 @@ The SCORM Cloud For WordPress basic functionality works with BuddyPress without


== Changelog ==
= 1.2.2 =
* Fixed bug in anonymous registrations

= 1.2.1 =
* Removed more deprecated methods
* Honor http/https schema being used for css/javascript includes
Expand Down

0 comments on commit e05b8f2

Please sign in to comment.