diff --git a/lam/templates/3rdParty/pla/lib/QueryRender.php b/lam/templates/3rdParty/pla/lib/QueryRender.php
index 9d5118f6..fd907ea3 100644
--- a/lam/templates/3rdParty/pla/lib/QueryRender.php
+++ b/lam/templates/3rdParty/pla/lib/QueryRender.php
@@ -210,76 +210,73 @@ class QueryRender extends PageRender {
echo '
';
echo '
';
- switch(get_request('format','REQUEST',false,$_SESSION[APPCONFIG]->getValue('search','display'))) {
- case 'list':
- foreach ($results as $dndetails) {
- $dndetails = array_change_key_case($dndetails);
+ $format = get_request('format','REQUEST',false,$_SESSION[APPCONFIG]->getValue('search','display'));
+ if ($format === 'list') {
+ foreach ($results as $dndetails) {
+ $dndetails = array_change_key_case($dndetails);
- # Temporarily set our DN, for rendering that leverages our DN (eg: JpegPhoto)
- $this->template->setDN($dndetails['dn']);
+ # Temporarily set our DN, for rendering that leverages our DN (eg: JpegPhoto)
+ $this->template->setDN($dndetails['dn']);
- echo '
',IMGDIR,get_icon($server->getIndex(),$dndetails['dn'])); + echo ' | ||||
', IMGDIR, get_icon($server->getIndex(), $dndetails['dn'])); - printf(' | %s | ', - $server->getIndex(),$this->template->getDNEncode(),htmlspecialchars(get_rdn($dndetails['dn']))); + printf('%s | ', + $server->getIndex(), $this->template->getDNEncode(), htmlspecialchars(get_rdn($dndetails['dn']))); + echo '||
dn | %s | |||
'; + + echo ' | '; + $this->draw('Name', $afattrs[$attr]); + echo ' | '; + + echo ''; + $this->draw('CurrentValues', $afattrs[$attr]); + echo ' | '; echo '||
dn | %s | |||
'; - - echo ' | '; - $this->draw('Name',$afattrs[$attr]); - echo ' | '; - - echo ''; - $this->draw('CurrentValues',$afattrs[$attr]); - echo ' | '; - echo '