Replace lowercase operators

This commit is contained in:
Hypolite Petovan 2017-06-08 21:03:44 -04:00
parent 98d1051583
commit ad4cdf2a9d
24 changed files with 80 additions and 80 deletions

View file

@ -530,7 +530,7 @@ function db_create_table($name, $fields, $verbose, $action, $indexes=null) {
$primary_keys = array();
foreach ($fields AS $fieldname => $field) {
$sql_rows[] = "`".dbesc($fieldname)."` ".db_field_command($field);
if (x($field,'primary') and $field['primary']!='') {
if (x($field,'primary') && $field['primary']!='') {
$primary_keys[] = $fieldname;
}
}