Skip to content

fix: Issue where upgrade continually runs#224

Merged
TheWitness merged 1 commit into
developfrom
upgrade-failures
May 16, 2026
Merged

fix: Issue where upgrade continually runs#224
TheWitness merged 1 commit into
developfrom
upgrade-failures

Conversation

@TheWitness
Copy link
Copy Markdown
Member

Closes: #210

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug where plugin_weathermap_upgrade() always ran because a version string was being compared to a full DB row array. The query is changed to fetch just the version cell so the comparison is string vs. string.

Changes:

  • Replace db_fetch_row("SELECT * ...") with db_fetch_cell("SELECT version ...") so $old holds the version string directly.

@TheWitness TheWitness merged commit fe892e3 into develop May 16, 2026
4 of 8 checks passed
@TheWitness TheWitness deleted the upgrade-failures branch May 16, 2026 18:49
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.

Bug: plugin_weathermap_upgrade() always runs due to string != array comparison

4 participants