Skip to content

Commit 9bc8c6a

Browse files
authored
Fix profile tab (#308)
* Fix(Profile): fix display right form * adapt changelog * fix
1 parent 7e3f7d7 commit 9bc8c6a

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [UNRELEASED]
9+
10+
### Fixed
11+
12+
- Fix display right form
13+
14+
815
## [1.9.0] - 2025-10-01
916

1017
### Added

inc/profile.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getFromDBByProfile($profiles_id)
138138
],
139139
];
140140
$result = $DB->request($query);
141-
if ($result->numrows() != 1) {
141+
if ($result->numrows() === 0) {
142142
return false;
143143
}
144144
$this->fields = $result->current();
@@ -306,7 +306,7 @@ public function showForm($ID, $options = [])
306306
$title = $LANG['plugin_mreporting'][$index][$report['name']]['title'];
307307

308308
echo "<tr class='tab_bg_1'>";
309-
echo '<td>' . htmlspecialchars($mreportingConfig->getLink()) . '&nbsp(' . htmlspecialchars($title) . '): </td>';
309+
echo '<td>' . $mreportingConfig->getLink() . '&nbsp(' . $title . '): </td>';
310310
echo '<td>';
311311
Profile::dropdownRight(
312312
$report['id'],

0 commit comments

Comments
 (0)