Revision: 2220
Author: andreassolberg
Date: Wed Mar 17 06:25:23 2010
Log: Backward compatability with metaedit
http://code.google.com/p/simplesamlphp/source/detail?r=2220
Modified:
/trunk/modules/metaedit/lib/MetaEditor.php
=======================================
--- /trunk/modules/metaedit/lib/MetaEditor.php Thu Jan 7 02:35:58 2010
+++ /trunk/modules/metaedit/lib/MetaEditor.php Wed Mar 17 06:25:23 2010
@@ -104,6 +104,7 @@
if (array_key_exists($key, $metadata)) {
$value = htmlspecialchars($metadata[$key]);
}
+ #echo '<tr><td><pre>'; print_r($metadata); echo
'</pre></td></tr>';
if ($textarea) {
return '<tr><td class="name">' . $name . '</td><td
class="data">
@@ -119,7 +120,12 @@
protected function endpointField($metadata, $key, $name, $textarea =
FALSE) {
$value = '';
if (array_key_exists($key, $metadata)) {
- $value = htmlspecialchars($metadata[$key]['Location']);
+ if (is_array($metadata[$key])) {
+ $value =
htmlspecialchars($metadata[$key]['Location']);
+ } else {
+ $value = htmlspecialchars($metadata[$key]);
+ }
+
}
if ($textarea) {
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.