stronk7

Untitled

Oct 30th, 2020
729
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/badges/backpack-add.php
  2. +++ b/badges/backpack-add.php
  3. @@ -98,7 +98,7 @@ if (!empty($issuedbadge->recipient->id)) {
  4.                  $assertionid
  5.              );
  6.  
  7. -            if (!$assertionentityid && strpos($sitebackpack->backpackapiurl, 'badgr')) {
  8. +            if ($assertionentityid && strpos($sitebackpack->backpackapiurl, 'badgr')) {
  9.                  $assertionentityid = badges_generate_badgr_open_url(
  10.                      $sitebackpack,
  11.                      OPEN_BADGES_V2_TYPE_ASSERTION,
  12.  
  13.  
  14. diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php
  15. index 3976d5ffb56..2edf3111bdb 100644
  16. --- a/lib/db/upgrade.php
  17. +++ b/lib/db/upgrade.php
  18. @@ -2911,14 +2911,13 @@ function xmldb_main_upgrade($oldversion) {
  19.              }
  20.  
  21.              $dbman->drop_field($table, $field);
  22. -        }
  23.  
  24. -        // Main savepoint reached.
  25. -        upgrade_main_savepoint(true, 2020102300.02);
  26. +            // Main savepoint reached.
  27. +            upgrade_main_savepoint(true, 2021052500.33);
  28. +        }
  29.      }
RAW Paste Data