From 54191d7ffbc4e13d6075c0cbc52c8c409610ea57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Collin?= Date: Fri, 30 Jan 2015 13:56:29 +0100 Subject: [PATCH] Fix some monitor information problems Fix some monitor information problems as reported by @brendankearney --- htdocs/monitor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/monitor.php b/htdocs/monitor.php index 51ac392..5416a1a 100644 --- a/htdocs/monitor.php +++ b/htdocs/monitor.php @@ -129,15 +129,15 @@ foreach (array( } # cn=Connections,cn=Monitor -printf('%s',$results['cn=Connections,cn=Monitor']['description'],_('LDAP Connections')); +printf('%s',$results['cn=Connections,cn=Monitor']['description'][0],_('LDAP Connections')); printf(''); echo '
'; echo ''; printf('', - _('Total Connections'),$results['cn=Total,cn=Connections,cn=Monitor']['monitorcounter']); + _('Total Connections'),$results['cn=Total,cn=Connections,cn=Monitor']['monitorcounter'][0]); printf('', - _('Current Connections'),$results['cn=Current,cn=Connections,cn=Monitor']['monitorcounter']); + _('Current Connections'),$results['cn=Current,cn=Connections,cn=Monitor']['monitorcounter'][0]); # Look for some connections foreach ($results as $key => $value) {
%s%s
%s%s