PHP 8.2 Deprecated cleaning

This commit is contained in:
2023-04-03 21:15:54 +02:00
parent 528b959859
commit d34d5a820a
6 changed files with 65 additions and 64 deletions

View File

@@ -1044,7 +1044,7 @@ class Dblayeroo
if ($col["is_nullable"] === "NO") {
$tmp[] = "not null";
}
if (substr($col["column_default"], 0, 7) === "nextval") {
if (is_string($col["column_default"]) && substr($col["column_default"], 0, 7) === "nextval") {
$tmp[] = "autoincrement";
$primary = $col["column_name"];
}