Merge branch 'w49_MDL-31424_m25_paypalcase' of git://github.com/skodak/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 11 Dec 2012 02:31:33 +0000 (10:31 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 11 Dec 2012 02:31:33 +0000 (10:31 +0800)
enrol/paypal/ipn.php

index 0d72b2c..77ed062 100644 (file)
@@ -172,7 +172,7 @@ if (strlen($result) > 0) {
 
         }
 
-        if ($data->business != $plugin->get_config('paypalbusiness')) {   // Check that the email is the one we want it to be
+        if (textlib::strtolower($data->business) !== textlib::strtolower($plugin->get_config('paypalbusiness'))) {   // Check that the email is the one we want it to be
             message_paypal_error_to_admin("Business email is {$data->business} (not ".
                     $plugin->get_config('paypalbusiness').")", $data);
             die;