Add default value to parameter
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 2 Feb 2010 16:27:13 +0000 (11:27 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 2 Feb 2010 16:27:13 +0000 (11:27 -0500)
Fixes warnings and notices from the factory

framework/Lock/lib/Horde/Lock.php

index 7d9d5ce..59d4e93 100644 (file)
@@ -29,7 +29,7 @@ class Horde_Lock
      *
      * @return Horde_Lock    Instance of Horde_Lock
      */
-    public function __construct($params)
+    public function __construct($params = array())
     {
         $this->_params = $params;
         return $this;