Skip to content
Snippets Groups Projects
Commit 8ce6be29 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Handling multiple photos in consent form

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1119 44740490-163a-0410-bde0-09ae8108e29a
parent 9f6e4660
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,11 @@ foreach ($this->data['noData'] as $name => $value) {
if (sizeof($value) > 1) {
$str .= '<tr class="' . $alternate[($i++ % 2)] . '"><td class="attrname">' . htmlspecialchars($name) . '</td><td class="attrvalue"><ul>';
foreach ($value AS $listitem) {
$str .= '<li>' . present_assoc($listitem) . '</li>';
if ($nameraw === 'jpegPhoto') {
$str .= '<li><img src="data:image/jpeg;base64,' . $listitem . '" /></li>';
} else {
$str .= '<li>' . present_assoc($listitem) . '</li>';
}
}
$str .= '</ul></td></tr>';
} elseif(isset($value[0])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment