From b4b6a2ae0859957094101ee883f2c186ed91a403 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 9 Jun 2023 18:27:28 +0200 Subject: [PATCH] fix lots of warnings filling zpush logs --- api/src/Db.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/src/Db.php b/api/src/Db.php index d7252fc16a..fe10843e43 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -1065,13 +1065,13 @@ class Db 'name' => $column->name, 'type' => $column->type, 'len' => $column->max_length, - 'flags' => $flags, // for backwards compatibilty (depreciated) used by JiNN atm + 'flags' => $flags, // for backwards compatibility (depreciated) used by JiNN atm 'not_null' => $column->not_null, 'auto_increment' => $column->auto_increment, 'primary_key' => $column->primary_key, 'binary' => $column->binary, 'has_default' => $column->has_default, - 'default' => $column->default_value, + 'default' => $column->default_value ?? null, ); $metadata[$i]['table'] = $table; if ($full) @@ -2321,11 +2321,11 @@ class Db false, // line false, // file false, // offset - $select['append'], - $select['app'], + $select['append'] ?? null, + $select['app'] ?? null, 0, // num_rows, - $select['join'], - $select['table_def'], + $select['join'] ?? null, + $select['table_def'] ?? null, )); } $sql = count($union) > 1 ? '(' . implode(")\nUNION\n(",$union).')' : 'SELECT DISTINCT'.substr($union[0],6);