Permalink
Browse files

Merge pull request #44 from bladeofsteel/patch-1

fix unregisterShutdownFunction
  • Loading branch information...
2 parents 2840963 + 9e778db commit 73645b06381d9f8409527f953fc6361f08e6c577 @kakserpom 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 73645b0

Please sign in to comment.