Skip to content
Browse files

fix unregisterShutdownFunction - remove callback function from array …

…instead of adding this callback again
  • Loading branch information...
1 parent 2840963 commit 9e778db3a2fcea76eeb4fe156dc00ee69aef752f @bladeofsteel bladeofsteel committed Jun 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Request.class.php
View
2 lib/Request.class.php 100755 → 100644
@@ -279,7 +279,7 @@ public function registerShutdownFunction($callback) {
*/
public function unregisterShutdownFunction($callback) {
if (($k = array_search($callback, $this->shutdownFuncs)) !== FALSE) {
- $this->shutdownFuncs[] = $callback;
+ unset($this->shutdownFuncs[$k]);
}
}

0 comments on commit 9e778db

Please sign in to comment.
Something went wrong with that request. Please try again.