Use false instead of FALSE

1.10.x
jmontoya 9 years ago
parent e6a7c0c6ee
commit cc9e74208b
  1. 2
      main/gradebook/lib/fe/gradebooktable.class.php
  2. 6
      main/inc/lib/extra_field_value.lib.php
  3. 12
      plugin/buycourses/src/paypalfunctions.php

@ -809,7 +809,7 @@ class GradebookTable extends SortableTable
$ySize = 400;
$pChart = new pImage($xSize, $ySize, $dataSet);
/* Turn of Antialiasing */
$pChart->Antialias = FALSE;
$pChart->Antialias = false;
/* Add a border to the picture */
$pChart->drawRectangle(0,0,$xSize-10,$ySize-10,array("R"=>0,"G"=>0,"B"=>0));

@ -80,7 +80,7 @@ class ExtraFieldValue extends Model
foreach ($params as $key => $value) {
$found = strpos($key, '__persist__');
if ($found === FALSE) {
if ($found === false) {
continue;
}
@ -107,7 +107,7 @@ class ExtraFieldValue extends Model
// An extra field.
$field_variable = substr($key, 6);
$extraFieldInfo = $this->getExtraField()->get_handler_field_info_by_field_variable($field_variable);
if (!$extraFieldInfo) {
continue;
}
@ -176,7 +176,7 @@ class ExtraFieldValue extends Model
]);
$tag->setCount(count($tagUses) + 1);
$em->persist($tag);
$em->persist($tag);
}
$em->flush();

@ -300,18 +300,18 @@ function DirectPayment($paymentType, $paymentAmount, $creditCardType, $creditCar
*/
function MassPayment(array $beneficiaries, $currencyCode) {
$nvpstr = "&RECEIVERTYPE=EmailAddress";
$nvpstr .= "&CURRENCYCODE=".$currencyCode;
$index = 0;
foreach ($beneficiaries as $beneficiary) {
$nvpstr .= "&L_EMAIL".$index."=".$beneficiary['paypal_account'];
$nvpstr .= "&L_AMT".$index."=".$beneficiary['commission'];
$index++;
}
$resArray = hash_call("MassPay", $nvpstr);
return $resArray;
@ -337,8 +337,8 @@ function hash_call($methodName, $nvpStr)
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//turning off the server and peer verification(TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);

Loading…
Cancel
Save