Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
Fix issue #21
  • Loading branch information
mevdschee committed Feb 9, 2016
1 parent 8b15a8d commit d74cfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ protected function deleteObject($key,$tables,$db) {
protected function findRelations($tables,$database,$db) {
$collect = array();
$select = array();
if (count($tables)>1) {
while (count($tables)>1) {
$table0 = array_shift($tables);

$result = $this->query($db,$this->queries['reflect_belongs_to'],array($table0,$tables,$database,$database));
Expand Down

0 comments on commit d74cfc2

Please sign in to comment.