aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bbcode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index e2403b8eb..e248c3771 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -968,5 +968,5 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) {
function strip_bbimage($s) {
- $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text);
+ return preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $s);
}