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

Fix for HTML validation (Thomas Graff)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1089 44740490-163a-0410-bde0-09ae8108e29a
parent b6017313
No related branches found
No related tags found
No related merge requests found
...@@ -136,8 +136,6 @@ foreach ($this->data['noData'] as $name => $value) { ...@@ -136,8 +136,6 @@ foreach ($this->data['noData'] as $name => $value) {
?> ?>
<input type="submit" style="display: inline" name="no" id="nobutton" value="<?php echo htmlspecialchars($this->t('{consent:no}')) ?>" /> <input type="submit" style="display: inline" name="no" id="nobutton" value="<?php echo htmlspecialchars($this->t('{consent:no}')) ?>" />
</p>
</form> </form>
<?php <?php
...@@ -186,10 +184,9 @@ foreach ($this->data['noData'] as $name => $value) { ...@@ -186,10 +184,9 @@ foreach ($this->data['noData'] as $name => $value) {
$alternate = array('odd', 'even'); $i = 0; $alternate = array('odd', 'even'); $i = 0;
$parentStr = (strlen($nameParent) > 0)? strtolower($nameParent) . '_': ''; $parentStr = (strlen($nameParent) > 0)? strtolower($nameParent) . '_': '';
$str = (strlen($nameParent) > 0)? '<table class="attributes">': '<table id="table_with_attributes" class="attributes">';
$str = '<table style="" id="table_with_attributes" class="attributes">';
foreach ($attributes as $name => $value) { foreach ($attributes as $name => $value) {
$nameraw = $name; $nameraw = $name;
$nameTag = '{attributes:attribute_' . $parentStr . str_replace(":", "_", strtolower($name) ) . '}'; $nameTag = '{attributes:attribute_' . $parentStr . str_replace(":", "_", strtolower($name) ) . '}';
if ($t->getTag($nameTag) !== NULL) { if ($t->getTag($nameTag) !== NULL) {
......
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