aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/photo/photo_driver.php1
-rw-r--r--include/taxonomy.php2
-rw-r--r--include/text.php2
3 files changed, 4 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 14408ea50..0b691b457 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -77,6 +77,7 @@ function guess_image_type($filename, $data = '') {
$type = null;
$m = null;
+ $headers = '';
$ph = photo_factory('');
$types = $ph->supportedTypes();
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 88be43464..1eded055a 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -555,7 +555,7 @@ function dir_tagblock($link,$r) {
$o = '';
if(! $r)
- $r = App::$data['directory_keywords'];
+ $r = App::$data['directory_keywords'] ?? [];
if($r) {
$o = '<div class="dirtagblock widget"><h3>' . t('Keywords') . '</h3><div class="tags" align="center">';
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 .= '<option value="' . $y . '"' . $selected . '>' . $z . '</option>';