Before sanitization
This commit is contained in:
+4
-1
@@ -350,7 +350,10 @@ class Server extends CommonDBTM
|
||||
|
||||
echo "<td>" . htmlspecialchars(__('Active')) . "</td>";
|
||||
echo "<td>";
|
||||
Dropdown::showYesNo('is_active', (int) ($this->fields['is_active'] ?? 1));
|
||||
Dropdown::showYesNo(
|
||||
'is_active',
|
||||
($ID !== null && $ID > 0) ? (int) ($this->fields['is_active'] ?? 1) : 1
|
||||
);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user