Permalink
Browse files

Fix E_RECOVERABLE_ERROR in event_api

Regression introduced by 5458f70.
  • Loading branch information...
1 parent a2b23b3 commit af6c6e559b9b92d83c93fb5e6633e9c249da1f77 @dregad dregad committed Jul 9, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/event_api.php
View
@@ -215,7 +215,7 @@ function event_callback( $p_event, $p_callback, $p_plugin, $p_params = null ) {
* @return void
* @access public
*/
-function event_type_execute( $p_event, array $p_callbacks, array $p_params ) {
+function event_type_execute( $p_event, array $p_callbacks, array $p_params = null ) {
foreach( $p_callbacks as $t_plugin => $t_callbacks ) {
foreach( $t_callbacks as $t_callback ) {
event_callback( $p_event, $t_callback, $t_plugin, $p_params );
@@ -275,7 +275,7 @@ function event_type_output( $p_event, array $p_callbacks, $p_params = null ) {
* @return string Output string
* @access public
*/
-function event_type_chain( $p_event, array $p_callbacks, $p_input, array $p_params ) {
+function event_type_chain( $p_event, array $p_callbacks, $p_input, array $p_params = null) {
$t_output = $p_input;
foreach( $p_callbacks as $t_plugin => $t_callbacks ) {

0 comments on commit af6c6e5

Please sign in to comment.