]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Deal with default param patterns more effectively
authorEvan Prodromou <evan@status.net>
Wed, 14 Sep 2011 16:27:20 +0000 (12:27 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 14 Sep 2011 16:27:20 +0000 (12:27 -0400)
lib/urlmapper.php

index dffb32c8149579aa10e29e7492ff26d7ff7e8078..6367d704261154c17ce89025c221f2bd1ce698c7 100644 (file)
@@ -59,7 +59,7 @@ class URLMapper
     protected $variables = array();
     protected $reverse = array();
 
-    function connect($path, $args, $paramPatterns=null)
+    function connect($path, $args, $paramPatterns=array())
     {
         if (!array_key_exists(self::ACTION, $args)) {
             throw new Exception(sprintf("Can't connect %s; path has no action.", $path));