From a8136898b40edb98f7d0eab0024639d4719057cd Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 14 Apr 2017 17:03:59 +0200 Subject: [PATCH] Opps, fixed parser errors Signed-off-by: Roland Haeder --- include/bbcode.php | 2 +- include/items.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index 1075d84ac8..2a70f95e59 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -573,7 +573,7 @@ function GetProfileUsername($profile, $username, $compact = false, $getnetwork = $gplus = preg_replace("=https?://plus.google.com/(.*)=ism", "$1@plus.google.com", $profile); if ($gplus != $profile) { if ($getnetwork) { - return NETWORK_GPLUS); + return NETWORK_GPLUS; } elseif ($compact) { return ($gplususername . " (" . $username . ")"); } else { diff --git a/include/items.php b/include/items.php index aed25f11ef..0f5afe5ee7 100644 --- a/include/items.php +++ b/include/items.php @@ -1169,7 +1169,7 @@ function item_body_set_hashtags(&$item) { "#$2", $item["body"]); foreach ($tags as $tag) { - if ((strpos($tag, '#') !== 0) || (strpos($tag, '[url=')) { + if ((strpos($tag, '#') !== 0) || (strpos($tag, '[url='))) { continue; } @@ -2198,7 +2198,7 @@ function drop_item($id, $interactive = true) { foreach ($r as $row) { if ($parentid != "") { $parentid .= ", "; - ] + } $parentid .= $row["id"]; } -- 2.39.5