From a4240db48f4c2a3b64af3265961a1776dd674865 Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@status.net>
Date: Wed, 14 Sep 2011 12:27:20 -0400
Subject: [PATCH] Deal with default param patterns more effectively

---
 lib/urlmapper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/urlmapper.php b/lib/urlmapper.php
index dffb32c814..6367d70426 100644
--- a/lib/urlmapper.php
+++ b/lib/urlmapper.php
@@ -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));
-- 
2.39.5