Skip to content

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed Sep 26, 2022
1 parent 0bf8fdb commit 57f80ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/db_pgsql_pdo.php
Expand Up @@ -429,7 +429,7 @@ public function show_fields_from($table)
$field['_key'] = '';
}

if (stripos($field['column_default'], 'nextval') !== false) {
if (!is_null($field['column_default']) && stripos($field['column_default'], 'nextval') !== false) {
$field['_extra'] = 'auto_increment';
} else {
$field['_extra'] = '';
Expand Down

0 comments on commit 57f80ec

Please sign in to comment.