From da10bf19cf78b71b62ecac1c32a83be2478104af Mon Sep 17 00:00:00 2001
From: Thomas Lange <code@nerdmind.de>
Date: Sat, 2 Sep 2017 15:46:54 +0200
Subject: Bugfix: An undefined array index "NAME" was used in the user
 navigation instead of the existing index "FULLNAME". This problem has existed
 since the first initial commit and was only present when more than one user
 had existed (it did not have affected the functionality of the navigation
 itself).

---
 template/standard/html/user/main.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'template/standard')

diff --git a/template/standard/html/user/main.php b/template/standard/html/user/main.php
index c72d53e..a72b3d3 100644
--- a/template/standard/html/user/main.php
+++ b/template/standard/html/user/main.php
@@ -17,13 +17,13 @@
 <section id="site-navi">
 
 	<?php if($USER['PREV']): ?>
-		<div><a id="prev-site" href="<?=$USER['PREV']['URL']?>" title="<?=$Language->text('prev_user')?> »<?=escapeHTML($USER['PREV']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-left"></i></a></div>
+		<div><a id="prev-site" href="<?=$USER['PREV']['URL']?>" title="<?=$Language->text('prev_user')?> »<?=escapeHTML($USER['PREV']['ATTR']['FULLNAME'])?>«"><i class="fa fa-arrow-left"></i></a></div>
 	<?php else: ?>
 		<div><a class="disabled"><i class="fa fa-arrow-left"></i></a></div>
 	<?php endif; ?>
 
 	<?php if($USER['NEXT']): ?>
-		<div><a id="next-site" href="<?=$USER['NEXT']['URL']?>" title="<?=$Language->text('next_user')?> »<?=escapeHTML($USER['NEXT']['ATTR']['NAME'])?>«"><i class="fa fa-arrow-right"></i></a></div>
+		<div><a id="next-site" href="<?=$USER['NEXT']['URL']?>" title="<?=$Language->text('next_user')?> »<?=escapeHTML($USER['NEXT']['ATTR']['FULLNAME'])?>«"><i class="fa fa-arrow-right"></i></a></div>
 	<?php else: ?>
 		<div><a class="disabled"><i class="fa fa-arrow-right"></i></a></div>
 	<?php endif; ?>
-- 
cgit v1.2.3