Remove uninitialised variable warning.

This commit is contained in:
Andrew McMillan committed 2008-10-27 17:02:28 +13:00
1 parent 28bb70e6fd
commit 3ae03f33d9
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}
}