Skip to content

Commit

Permalink
Fix E_RECOVERABLE_ERROR in event_api
Browse files Browse the repository at this point in the history
Regression introduced by 5458f70.
  • Loading branch information
dregad committed Jul 10, 2014
1 parent a2b23b3 commit af6c6e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/event_api.php
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit af6c6e5

Please sign in to comment.