summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Burschka2013-12-30 03:20:21 +0100
committerChristoph Burschka2013-12-30 03:20:21 +0100
commit263b1a056d480f176bb444e16e9bce482a1848ce (patch)
tree099eedc3ac7f35e5afcbf27856feabe6531d2425
parentSMF's SSI API may randomly spew HTML; run it in an output buffer. (diff)
downloadejabberd-auth-php-263b1a056d480f176bb444e16e9bce482a1848ce.tar.gz
Actually return the result of the SSI call.
-rw-r--r--plugins/smf2/smf2.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/smf2/smf2.module b/plugins/smf2/smf2.module
index 441b7ba..8274318 100644
--- a/plugins/smf2/smf2.module
+++ b/plugins/smf2/smf2.module
@@ -18,6 +18,7 @@ function smf_ssi($function) {
array_shift($args);
ob_start();
- call_user_func_array("ssi_$function", $args);
+ $result = call_user_func_array("ssi_$function", $args);
file_put_contents('php://stderr', ob_get_clean());
+ return $result;
}