]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBStructure.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / src / Database / DBStructure.php
index b5e444020ab4492059de9a46dd2e37d1dd3a0a3f..92666edb89b78c42cfa3bb80bf48e701cb99ef91 100644 (file)
@@ -538,7 +538,7 @@ class DBStructure
                $primary_keys = [];
                foreach ($structure["fields"] AS $fieldname => $field) {
                        $sql_rows[] = "`".DBA::escape($fieldname)."` ".self::FieldCommand($field);
-                       if (x($field,'primary') && $field['primary']!='') {
+                       if (!empty($field['primary'])) {
                                $primary_keys[] = $fieldname;
                        }
                }