Don't return from the callback, we haven't deleted the share yet.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 8 Nov 2010 20:33:34 +0000 (15:33 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 8 Nov 2010 20:33:34 +0000 (15:33 -0500)
framework/Share/lib/Horde/Share.php

index dce3f40..f339e3c 100644 (file)
@@ -382,7 +382,7 @@ class Horde_Share
     {
         // Run the results through the callback, if configured.
         if (!empty($this->_callbacks['remove'])) {
-            return call_user_func($this->_callbacks['remove'], $share);
+            call_user_func($this->_callbacks['remove'], $share);
         }
 
         /* Remove share from the caches. */