Subversion Repositories ALCASAR

Rev

Rev 1805 | Rev 1879 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1805 Rev 1831
Line 97... Line 97...
97
			echo "<b>Database query failed partially: " . da_sql_error($link,$config) . "</b><br>\n";
97
			echo "<b>Database query failed partially: " . da_sql_error($link,$config) . "</b><br>\n";
98
		if (isset($tmp)){
98
		if (isset($tmp)){
99
			foreach(array_keys($tmp) as $val){
99
			foreach(array_keys($tmp) as $val){
100
				if ($val == '')
100
				if ($val == '')
101
					continue;
101
					continue;
102
				if(isset($rev_attrmap["$val"])) $key = $rev_attrmap["$val"];
102
				if(isset($rev_attrmap["$val"])) {
-
 
103
					$key = $rev_attrmap["$val"];
-
 
104
				}
103
				if ($key == ''){
105
				if ($key == ''){
104
					$key = $val;
106
					$key = $val;
105
					$attrmap["$key"] = $val;
107
					$attrmap["$key"] = $val;
106
					$attr_type["$key"] = 'replyItem';
108
					$attr_type["$key"] = 'replyItem';
107
					$rev_attrmap["$val"] = $key;
109
					$rev_attrmap["$val"] = $key;
Line 117... Line 119...
117
	else
119
	else
118
		echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";
120
		echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n";
119
}
121
}
120
else
122
else
121
	echo "<b>Could not connect to SQL database</b><br>\n";
123
	echo "<b>Could not connect to SQL database</b><br>\n";
-
 
124
 
122
?>
125
?>