]> git.mxchange.org Git - friendica.git/commitdiff
Fix variable type in include/text
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:38:12 +0000 (11:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:38:12 +0000 (11:38 -0500)
include/text.php

index a96a3a1e58898b7b0f5c980dc1bf98a68e90cdc4..c4249f86c49acc47d245163f3eed9bd3787ff866 100644 (file)
@@ -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) {