Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 99131
Collapse All | Expand All

(-)/var/www/localhost/htdocs/horde/kronolith/lib/Driver/sql.php (-2 / +1 lines)
Lines 166-173 Link Here
166
                return false;
166
                return false;
167
            }
167
            }
168
        } else {
168
        } else {
169
            $tempClass =  new Kronolith_Event_sql($this);
169
            return new Kronolith_Event_sql($this);
170
            return $tempClass;
171
        }
170
        }
172
    }
171
    }
173
172
(-)/var/www/localhost/htdocs/horde/kronolith/lib/Driver.php (-2 / +1 lines)
Lines 68-75 Link Here
68
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
68
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
69
        $class = 'Kronolith_Driver_' . $driver;
69
        $class = 'Kronolith_Driver_' . $driver;
70
        if (class_exists($class)) {
70
        if (class_exists($class)) {
71
            $tempClass = new $class($params);
71
            return new $class($params);
72
	    return $tempClass;
73
        } else {
72
        } else {
74
            Horde::fatal(new PEAR_Error(sprintf(_("Unable to load the definition of %s."), $class)), __FILE__, __LINE__);
73
            Horde::fatal(new PEAR_Error(sprintf(_("Unable to load the definition of %s."), $class)), __FILE__, __LINE__);
75
        }
74
        }
(-)/var/www/localhost/htdocs/horde/lib/Auth.php (-2 / +1 lines)
Lines 77-84 Link Here
77
        }
77
        }
78
        $class = 'Auth_' . $driver;
78
        $class = 'Auth_' . $driver;
79
        if (class_exists($class)) {
79
        if (class_exists($class)) {
80
	    $tempClass = new $class($params);
80
            return new $class($params);
81
            return $tempClass;
82
        } else {
81
        } else {
83
            return PEAR::raiseError('Class definition of ' . $class . ' not found.');
82
            return PEAR::raiseError('Class definition of ' . $class . ' not found.');
84
        }
83
        }
(-)/var/www/localhost/htdocs/horde/lib/Prefs.php (-2 / +1 lines)
Lines 141-148 Link Here
141
        /* Return a base Prefs object if no driver is specified. */
141
        /* Return a base Prefs object if no driver is specified. */
142
        $driver = strtolower(basename($driver));
142
        $driver = strtolower(basename($driver));
143
        if (empty($driver) || (strcmp($driver, 'none') == 0)) {
143
        if (empty($driver) || (strcmp($driver, 'none') == 0)) {
144
            $tempClass = new Prefs;
144
            return new Prefs;
145
	    return $tempClass;
146
        }
145
        }
147
146
148
        /* If $params['user_hook'] is defined, use it to retrieve the
147
        /* If $params['user_hook'] is defined, use it to retrieve the
(-)/var/www/localhost/htdocs/horde/mnemo/lib/Driver.php (-2 / +1 lines)
Lines 61-68 Link Here
61
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
61
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
62
        $class = 'Mnemo_Driver_' . $driver;
62
        $class = 'Mnemo_Driver_' . $driver;
63
        if (class_exists($class)) {
63
        if (class_exists($class)) {
64
            $tempClass = new $class($user, $params);
64
            return new $class($user, $params);
65
	    return $tempClass;
66
        } else {
65
        } else {
67
            return false;
66
            return false;
68
        }
67
        }
(-)/var/www/localhost/htdocs/horde/nag/lib/Driver.php (-2 / +1 lines)
Lines 61-68 Link Here
61
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
61
        include_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
62
        $class = 'Nag_Driver_' . $driver;
62
        $class = 'Nag_Driver_' . $driver;
63
        if (class_exists($class)) {
63
        if (class_exists($class)) {
64
            $tempClass = new $class($user, $params);
64
            return new $class($user, $params);
65
	    return $tempClass;
66
        } else {
65
        } else {
67
            return false;
66
            return false;
68
        }
67
        }

Return to bug 99131