|
@@ -857,9 +857,9 @@ class FormTicket
|
|
|
}
|
|
|
|
|
|
// If selected is text, we compare with code, otherwise with id
|
|
|
- if (preg_match('/[a-z]/i', $selected) && $selected == $arraycategories['code']) {
|
|
|
+ if (isset($selected) && preg_match('/[a-z]/i', $selected) && $selected == $arraycategories['code']) {
|
|
|
print ' selected="selected"';
|
|
|
- } elseif ($selected == $id) {
|
|
|
+ } elseif (isset($selected) && $selected == $id) {
|
|
|
print ' selected="selected"';
|
|
|
} elseif ($arraycategories['use_default'] == "1" && !$selected && !$empty) {
|
|
|
print ' selected="selected"';
|
|
@@ -1194,9 +1194,9 @@ class FormTicket
|
|
|
}
|
|
|
|
|
|
// If text is selected, we compare with code, otherwise with id
|
|
|
- if (preg_match('/[a-z]/i', $selected) && $selected == $arrayseverities['code']) {
|
|
|
+ if (isset($selected) && preg_match('/[a-z]/i', $selected) && $selected == $arrayseverities['code']) {
|
|
|
print ' selected="selected"';
|
|
|
- } elseif ($selected == $id) {
|
|
|
+ } elseif (isset($selected) && $selected == $id) {
|
|
|
print ' selected="selected"';
|
|
|
} elseif ($arrayseverities['use_default'] == "1" && !$selected && !$empty) {
|
|
|
print ' selected="selected"';
|