From 7ca289edd0d568a51dfdf225a5ef0e9663c38838 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Oct 2022 19:25:01 +0000 Subject: fix php warnings --- include/text.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 220844fd1..d0092912b 100644 --- a/include/text.php +++ b/include/text.php @@ -2206,6 +2206,8 @@ function mimetype_select($channel_id, $current = 'text/bbcode', $choices = null, $x['application/x-php'] = t('PHP'); } + $options = ''; + foreach($x as $y => $z) { $selected = (($y == $current) ? ' selected="selected" ' : ''); $options .= ''; -- cgit v1.2.3