[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Add fix in typesafe comparison of AuthKeyModel (thanks to E. Sobe)

git at icinga.org git at icinga.org
Mon Jan 10 09:04:59 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: 2b6867c71ffe38f90a1f100c5636cec508e2f759
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=2b6867c71ffe38f90a1f100c5636cec508e2f759

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Tue Dec 14 15:37:51 2010 +0100

* Add fix in typesafe comparison of AuthKeyModel (thanks to E. Sobe)

---

 .../models/Auth/Provider/AuthKeyModel.class.php    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php b/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
index b97c5ea..45ed5fb 100644
--- a/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
+++ b/app/modules/AppKit/models/Auth/Provider/AuthKeyModel.class.php
@@ -33,7 +33,7 @@ class AppKit_Auth_Provider_AuthKeyModel extends AppKitAuthProviderBaseModel  imp
 
 		$res = $res->execute(null, Doctrine::HYDRATE_ARRAY);
 		
-		if (isset($res[0]['cnt']) && $res[0]['cnt'] === 1) {
+		if (isset($res[0]['cnt']) && $res[0]['cnt'] == 1) {
 			return true;
 		}
 		
@@ -47,4 +47,4 @@ class AppKit_Auth_Provider_AuthKeyModel extends AppKitAuthProviderBaseModel  imp
 	public function getUserdata($uid, $authid=false) {
 		
 	}
-}
\ No newline at end of file
+}





More information about the icinga-checkins mailing list