minor fixes

This commit is contained in:
David Bomba 2025-01-13 19:15:58 +11:00
parent 62bab1e353
commit 31a9532c6a
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ class UpdateCompanyRequest extends Request
if (Ninja::isHosted()) {
foreach ($this->protected_input as $protected_var) {
$settings[$protected_var] = str_replace("script", "", $settings[$protected_var]);
if(isset($settings[$protected_var])) {
$settings[$protected_var] = str_replace("script", "", $settings[$protected_var]);
}
}
}