Skip to content

Commit

Permalink
attempt to fix issues reported in github
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT committed Dec 19, 2024
1 parent 28b931a commit b485bc8
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/ChurchCRM/Service/AppIntegrityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static function getIntegrityCheckMessage(): string
AppIntegrityService::$IntegrityCheckDetails->message = gettext('The previous integrity check passed. All system file hashes match the expected values.');
}

return AppIntegrityService::$IntegrityCheckDetails->message;
return AppIntegrityService::$IntegrityCheckDetails->message ?? '';
}

public static function getFilesFailingIntegrityCheck()
Expand Down
2 changes: 1 addition & 1 deletion src/ChurchCRM/Service/FinancialService.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function getPayments($depID = null): array
$values->plg_FamID = $plg_FamID;
$values->familyString = $family->getFamilyString();
$values->plg_FYID = $plg_FYID;
$values->FiscalYear = MakeFYString($plg_FYID);
$values->FiscalYear = MakeFYString($plg_FYID ? (int) $plg_FYID : null);
$values->plg_date = $plg_date;
$values->plg_amount = $plg_amount;
$values->plg_schedule = $plg_schedule;
Expand Down
2 changes: 1 addition & 1 deletion src/Include/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function PrintFYIDSelect(string $selectName, int $iFYID = null): void
$selectedTag = ' selected';
}

$selectableOptions[] = sprintf('<option value="%s"', $fy) . $selectedTag . '>' . MakeFYString($fy) . '</option>';
$selectableOptions[] = sprintf('<option value="%s"', $fy) . $selectedTag . '>' . MakeFYString((int) $fy) . '</option>';
}

$selectableOptions = [
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/ClassAttendance.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$nGrps = count($aGrp);
LoggerUtils::getAppLogger()->debug("Group ID = {$iGroupID}");

$iFYID = InputUtils::legacyFilterInput($_GET['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_GET['FYID'], 'int');

$tFirstSunday = InputUtils::legacyFilterInput($_GET['FirstSunday']);
$tLastSunday = InputUtils::legacyFilterInput($_GET['LastSunday']);
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/ClassList.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$aGrp = explode(',', $iGroupID);
$nGrps = count($aGrp);

$iFYID = InputUtils::legacyFilterInput($_GET['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_GET['FYID'], 'int');
$dFirstSunday = InputUtils::legacyFilterInput($_GET['FirstSunday']);
$dLastSunday = InputUtils::legacyFilterInput($_GET['LastSunday']);
$withPictures = InputUtils::legacyFilterInput($_GET['pictures']);
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/PhotoBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$iGroupID = InputUtils::legacyFilterInput($_GET['GroupID']);
$aGrp = explode(',', $iGroupID);

$iFYID = InputUtils::legacyFilterInput($_GET['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_GET['FYID'], 'int');

class PdfPhotoBook extends ChurchInfoReport
{
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/PledgeSummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// Filter Values
$output = InputUtils::legacyFilterInput($_POST['output']);
$iFYID = InputUtils::legacyFilterInput($_POST['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_POST['FYID'], 'int');
if (!$iFYID) {
$iFYID = CurrentFY();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/ReminderReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
AuthenticationManager::redirectHomeIfFalse(AuthenticationManager::getCurrentUser()->isFinanceEnabled());

// Get the Fiscal Year ID out of the query string
$iFYID = InputUtils::legacyFilterInput($_POST['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_POST['FYID'], 'int');
if (!$iFYID) {
$iFYID = CurrentFY();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Reports/VotingMembers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use ChurchCRM\Utils\InputUtils;

// Get the Fiscal Year ID out of the query string
$iFYID = InputUtils::legacyFilterInput($_POST['FYID'], 'int');
$iFYID = (int) InputUtils::legacyFilterInput($_POST['FYID'], 'int');
if (!$iFYID) {
$iFYID = CurrentFY();
}
Expand Down
2 changes: 1 addition & 1 deletion src/SelectDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<tr class="<?= $sRowClass ?>">
<td><?= $plg_PledgeOrPayment ?>&nbsp;</td>
<td><?= $fundName ?>&nbsp;</td>
<td><?= MakeFYString($plg_FYID) ?>&nbsp;</td>
<td><?= MakeFYString($plg_FYID ? (int) $plg_FYID : null) ?>&nbsp;</td>
<td><?= $plg_date ?>&nbsp;</td>
<td><?= $plg_amount ?>&nbsp;</td>
<td><?= $plg_schedule ?>&nbsp;</td>
Expand Down
2 changes: 1 addition & 1 deletion src/v2/templates/people/family-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

$iFYID = CurrentFY();
if (array_key_exists('idefaultFY', $_SESSION)) {
$iFYID = MakeFYString($_SESSION['idefaultFY']);
$iFYID = MakeFYString((int) $_SESSION['idefaultFY']);
}
?>

Expand Down

0 comments on commit b485bc8

Please sign in to comment.