From 8414853140930bdf4f14cfee2f8a532d47c07129 Mon Sep 17 00:00:00 2001 From: Michael Hamann Date: Fri, 11 May 2012 17:34:26 +0200 Subject: tpl_get_action: Return empty params array instead of params string This prevents an "Illegal string offset" error in PHP 5.4 in the test cases (the integration tests failed here with PHP 5.4). --- inc/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index ab6aa925f..d007f47ef 100644 --- a/inc/template.php +++ b/inc/template.php @@ -580,7 +580,7 @@ function tpl_get_action($type) { $accesskey = 'v'; } }else{ - $params = ''; + $params = array(); $type = 'show'; $accesskey = 'v'; } @@ -597,7 +597,7 @@ function tpl_get_action($type) { break; case 'top': $accesskey = 'x'; - $params = ''; + $params = array(); $id = '#dokuwiki__top'; break; case 'back': @@ -606,7 +606,7 @@ function tpl_get_action($type) { return false; } $id = $parent; - $params = ''; + $params = array(); $accesskey = 'b'; break; case 'login': -- cgit v1.2.3