File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1073,7 +1073,7 @@ public function processIndexes(string $table): bool
1073
1073
$ sqls = [];
1074
1074
$ fk = $ this ->foreignKeys ;
1075
1075
1076
- if (empty ( $ this ->fields ) ) {
1076
+ if ($ this ->fields === [] ) {
1077
1077
$ this ->fields = array_flip (array_map (
1078
1078
static fn ($ columnName ) => $ columnName ->name ,
1079
1079
$ this ->db ->getFieldData ($ this ->db ->DBPrefix . $ table )
@@ -1082,18 +1082,18 @@ public function processIndexes(string $table): bool
1082
1082
1083
1083
$ fields = $ this ->fields ;
1084
1084
1085
- if (! empty ( $ this ->keys ) ) {
1085
+ if ($ this ->keys !== [] ) {
1086
1086
$ sqls = $ this ->_processIndexes ($ this ->db ->DBPrefix . $ table , true );
1087
1087
}
1088
1088
1089
- if (! empty ( $ this ->primaryKeys ) ) {
1089
+ if ($ this ->primaryKeys !== [] ) {
1090
1090
$ sqls [] = $ this ->_processPrimaryKeys ($ table , true );
1091
1091
}
1092
1092
1093
1093
$ this ->foreignKeys = $ fk ;
1094
1094
$ this ->fields = $ fields ;
1095
1095
1096
- if (! empty ( $ this ->foreignKeys ) ) {
1096
+ if ($ this ->foreignKeys !== [] ) {
1097
1097
$ sqls = array_merge ($ sqls , $ this ->_processForeignKeys ($ table , true ));
1098
1098
}
1099
1099
You can’t perform that action at this time.
0 commit comments