aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/zid.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zid.php b/include/zid.php
index aaa509a09..3b3dd8554 100644
--- a/include/zid.php
+++ b/include/zid.php
@@ -206,8 +206,8 @@ function zidify_text($s) {
function red_zrl_callback($matches) {
// Catch and exclude trailing punctuation
- if (preg_match("/[.,;:!?)]*$/i", $matches[2], $pts))
- $matches[2] = substr($matches[2], 0, strlen($matches[2])-strlen($pts[0]));
+ preg_match("/[.,;:!?)]*$/i", $matches[2], $pts);
+ $matches[2] = substr($matches[2], 0, strlen($matches[2])-strlen($pts[0]));
$zrl = is_matrix_url($matches[2]);