Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Last active December 23, 2015 17:29
Show Gist options
  • Save mrvdb/6668828 to your computer and use it in GitHub Desktop.
Save mrvdb/6668828 to your computer and use it in GitHub Desktop.
commit eca10aee6f4232d84f91a9b764bb7d73943228df
Author: Marcel van der Boom <[email protected]>
Date: Mon Sep 23 12:32:30 2013 +0200
Wrong call signature used for Event::handle
Call needs 2nd parameter to be array.
1 file changed, 1 insertion(+), 1 deletion(-)
actions/profilecompletion.php | 2 +-
Modified actions/profilecompletion.php
diff --git a/actions/profilecompletion.php b/actions/profilecompletion.php
index 9f3f2c9..6bd8330 100644
--- a/actions/profilecompletion.php
+++ b/actions/profilecompletion.php
@@ -179,7 +179,7 @@ class ProfilecompletionAction extends Action
else {
$cnt = $profile->find();
}
- Event::handle('EndProfileCompletionSearch', $this, $profile, $search_engine);
+ Event::handle('EndProfileCompletionSearch', array($this, &$profile, $search_engine));
}
while ($profile->fetch()) {
[back]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment