|
@@ -1597,9 +1597,9 @@ class PHP_CRUD_API {
|
1597
|
1597
|
// remove unauthorized tables and tables without fields
|
1598
|
1598
|
$tables[$t][$path] = array_values(array_filter($tables[$t][$path]));
|
1599
|
1599
|
}
|
1600
|
|
- if (!$table['root_actions']&&!$table['id_actions']) $tables[$t] = false;
|
|
1600
|
+ if (!$tables[$t]['root_actions']&&!$tables[$t]['id_actions']) $tables[$t] = false;
|
1601
|
1601
|
}
|
1602
|
|
- $tables = array_values(array_filter($tables));
|
|
1602
|
+ $tables = array_merge(array_filter($tables));
|
1603
|
1603
|
//var_dump($tables);die();
|
1604
|
1604
|
|
1605
|
1605
|
echo '{"swagger":"2.0",';
|