]> git.pld-linux.org Git - packages/cacti.git/blame - import_template_argument_space_removal.patch
- silence php warning accessing items from array that don't exist if queried host...
[packages/cacti.git] / import_template_argument_space_removal.patch
CommitLineData
6a573b99
AM
1--- cacti-0.8.6i/lib/import.php 2006-10-09 00:06:00.000000000 -0400
2+++ cacti-0.8.6i-patch/lib/import.php 2007-01-02 08:17:09.593750000 -0500
3@@ -687,6 +687,11 @@
4 while (list($field_name, $field_array) = each($fields_data_input_edit)) {
5 /* make sure this field exists in the xml array first */
6 if (isset($xml_array[$field_name])) {
7+ /* fix issue with data input method importing and white spaces */
8+ if ($field_name == "input_string") {
9+ $xml_array[$field_name] = str_replace("><", "> <", $xml_array[$field_name]);
10+ }
11+
12 $save[$field_name] = addslashes(xml_character_decode($xml_array[$field_name]));
13 }
14 }
This page took 0.059942 seconds and 4 git commands to generate.