freebsd-ports/www/horde-passwd/files/patch-lib_Driver.php
Shaun Amott 1e4760dbf4 - Fix a bug in horde-passwd.
Submitted by:	Danny Carroll
2006-09-04 21:57:54 +00:00

12 lines
538 B
PHP

--- lib/Driver.php.orig Wed Aug 23 13:18:54 2006
+++ lib/Driver.php Wed Aug 23 13:19:40 2006
@@ -107,7 +107,8 @@
require_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
$class = 'Passwd_Driver_' . $driver;
if (class_exists($class)) {
- return $ret = &new $class($params);
+ $ret = &new $class($params);
+ return $ret;
} else {
Horde::fatal(PEAR::raiseError(sprintf(_("No such backend \"%s\" found."), $driver)), __FILE__, __LINE__);
}