[dev] Auth fixup

John Morrissey jwm at horde.net
Sun Jun 1 18:04:58 PDT 2003


Auth:: will take an array argument for $driver, but Horde::getDriverConfig()
expects a string specifying the driver name. Patch attached.

john
-- 
John Morrissey          _o            /\         ----  __o
jwm at horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__
-------------- next part --------------
Index: lib/Auth.php
===================================================================
RCS file: /repository/horde/lib/Auth.php,v
retrieving revision 1.84
diff -u -r1.84 Auth.php
--- lib/Auth.php	27 May 2003 12:08:17 -0000	1.84
+++ lib/Auth.php	2 Jun 2003 01:02:08 -0000
@@ -126,7 +126,8 @@
         }
 
         if (is_null($params)) {
-            $params = Horde::getDriverConfig('auth', $driver);
+            $params = Horde::getDriverConfig('auth',
+                is_array($driver) ? $driver[1] : $driver);
         }
 
         $signature = serialize(array($driver, $params));
@@ -593,7 +594,8 @@
             $driver = $conf['auth']['driver'];
         }
         if (is_null($params)) {
-            $params = Horde::getDriverConfig('auth', $driver);
+            $params = Horde::getDriverConfig('auth',
+                is_array($driver) ? $driver[1] : $driver);
         }
 
         if ($driver == 'application') {


More information about the dev mailing list