Permalink
Browse files

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).
  • Loading branch information...
1 parent df08777 commit 8414853140930bdf4f14cfee2f8a532d47c07129 @michitux michitux committed May 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 inc/template.php
View
@@ -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':

0 comments on commit 8414853

Please sign in to comment.