Skip to content

Update billing.php#27

Merged
shieldss merged 1 commit into
mainfrom
dev
Apr 7, 2026
Merged

Update billing.php#27
shieldss merged 1 commit into
mainfrom
dev

Conversation

@shieldss

@shieldss shieldss commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

refactor billing to eliminate log errors and increase performance.

refactor billing to eliminate log errors and increase performance.
@shieldss shieldss merged commit 77e435e into main Apr 7, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e41f94bb3e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread public/billing.php
</div>

<?php
mysqli_close($conn);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove duplicate mysqli_close before footer include

public/billing.php closes $conn and then immediately includes footer.php, which also calls mysqli_close($conn) when $conn is a mysqli instance. On PHP 8 (the repo targets php:8.4), that second close raises a fatal mysqli object is already closed, so this page can crash after rendering. Keep connection cleanup in one place (footer or page), but not both.

Useful? React with 👍 / 👎.

Comment thread public/billing.php
Comment on lines +79 to +81
if ($selectedLibrary !== '') {
$librarySql .= ' WHERE university = ?';
$params[] = $selectedLibrary;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Load full library list even when a filter is active

The dropdown options query is constrained with WHERE university = ? whenever $selectedLibrary is non-empty, so once a user filters by one library they can no longer directly switch to a different library in the same form submission (only the current library plus “All Libraries” remains). This regresses the filter workflow; the options list should remain the full library set while only the report query applies the selected-library filter.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant