Browse Source

Bugfix for J.O.

Maurits van der Schee 8 years ago
parent
commit
1463180a99
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      api.php

+ 2
- 2
api.php View File

@@ -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",';

Loading…
Cancel
Save