From: Evan Prodromou Date: Wed, 14 Sep 2011 16:27:20 +0000 (-0400) Subject: Deal with default param patterns more effectively X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a4240db48f4c2a3b64af3265961a1776dd674865;p=quix0rs-gnu-social.git Deal with default param patterns more effectively --- 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));