From 3ae03f33d97fcdb50f93798c5faf47196db962ce Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 27 Oct 2008 17:02:28 +1300 Subject: [PATCH] Remove uninitialised variable warning. --- htdocs/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/tools.php b/htdocs/tools.php index cd7cc5d8..c3ed7ebd 100644 --- a/htdocs/tools.php +++ b/htdocs/tools.php @@ -38,7 +38,7 @@ class Tools { function render(){ global $c; echo $this->renderImportFromDirectory(); - if ( $c->authenticate_hook['call'] == 'LDAP_check' && function_exists("sync_LDAP") ) { + if ( isset($c->authenticate_hook['call']) && $c->authenticate_hook['call'] == 'LDAP_check' && function_exists("sync_LDAP") ) { echo $this->renderSyncLDAP(); } }