I am using usercake to generate links to different permissions.
All works fine if I want hyperlinks, I added in an image bit and it broke the code, it will load but the entire address bar goes like there are no permissions.
Before:
//Links for permission level 3 (xx)
if ($loggedInUser->checkPermission(array(3))){
echo "<div id='xx'>
<ul>
<li><a href='xx.php'>xxx</a></li>
</ul></br ></div>";
}
After
//Links for permission level 3 (xx)
if ($loggedInUser->checkPermission(array(3))){
echo "<div id='xx'>
<ul>
<li><a href="xxx.php"><img src="xx"></a></li>
</ul></br ></div>";
}
It just makes the menu bar disappear.
Any ideas? Am I missing something obvious?
--update is it because I have not escaped properly?