From: Hypolite Petovan Date: Mon, 21 Jan 2019 16:38:12 +0000 (-0500) Subject: Fix variable type in include/text X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04b742a97da4803c6448db2a6a74d55f3cb9df86;p=friendica.git Fix variable type in include/text --- diff --git a/include/text.php b/include/text.php index a96a3a1e58..c4249f86c4 100644 --- a/include/text.php +++ b/include/text.php @@ -122,7 +122,7 @@ function qp($s) { */ function redir_private_images($a, &$item) { - $matches = false; + $matches = []; $cnt = preg_match_all('|\[img\](http[^\[]*?/photo/[a-fA-F0-9]+?(-[0-9]\.[\w]+?)?)\[\/img\]|', $item['body'], $matches, PREG_SET_ORDER); if ($cnt) { foreach ($matches as $mtch) { @@ -187,7 +187,7 @@ function get_cats_and_terms($item) $categories = []; $folders = []; - $matches = false; + $matches = []; $first = true; $cnt = preg_match_all('/<(.*?)>/', $item['file'], $matches, PREG_SET_ORDER); if ($cnt) { @@ -208,7 +208,7 @@ function get_cats_and_terms($item) } if (local_user() == $item['uid']) { - $matches = false; + $matches = []; $first = true; $cnt = preg_match_all('/\[(.*?)\]/', $item['file'], $matches, PREG_SET_ORDER); if ($cnt) {