From ff451f977a169340e55704313d6d7b1ecd6fb0f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Fri, 10 Jul 2009 07:54:02 +0000
Subject: [PATCH] Compare version more correctly... on schema ldapstatus

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1557 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php b/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php
index fa07180bf..de92f8029 100755
--- a/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php
+++ b/modules/ldapstatus/lib/Auth/Backend/Test/StandardLDAPTest.php
@@ -240,7 +240,7 @@ class sspmod_ldapstatus_Auth_Backend_Test_StandardLDAPTest extends sspmod_feide_
 				$result['getTestOrg']['time'] = $tester->tack('getTestOrg', FALSE); 
 				
 				if (array_key_exists('eduPersonOrgDN:norEduOrgSchemaVersion', $attributes)) {
-					if ($attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0] == '1.4') {
+					if (version_compare($attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0], '1.4', '>=')) {
 						$result['schema'] = array(TRUE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]);
 					} else {
 						$result['schema'] = array(FALSE, 'Version: ' . $attributes['eduPersonOrgDN:norEduOrgSchemaVersion'][0]);
-- 
GitLab