From 04b742a97da4803c6448db2a6a74d55f3cb9df86 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 21 Jan 2019 11:38:12 -0500 Subject: [PATCH] Fix variable type in include/text --- include/text.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {