Disable this until it has been improved and tested more.
This commit is contained in:
@@ -850,21 +850,21 @@ include "root.php";
|
|||||||
}
|
}
|
||||||
|
|
||||||
//get the child data
|
//get the child data
|
||||||
$sql = "select * from ".$table_prefix.$child_table." ";
|
//$sql = "select * from ".$table_prefix.$child_table." ";
|
||||||
$sql .= "where ".$relation['field']." = :".$relation['field'];
|
//$sql .= "where ".$relation['field']." = :".$relation['field'];
|
||||||
$parameters[$relation['field']] = $row[$relation['field']];
|
//$parameters[$relation['field']] = $row[$relation['field']];
|
||||||
$results = $this->execute($sql, $parameters, 'all');
|
//$results = $this->execute($sql, $parameters, 'all');
|
||||||
unset($parameters);
|
//unset($parameters);
|
||||||
if (is_array($results)) {
|
//if (is_array($results)) {
|
||||||
$old_array[$parent_name][$x][$child_table] = $results;
|
// $old_array[$parent_name][$x][$child_table] = $results;
|
||||||
}
|
//}
|
||||||
|
|
||||||
//delete the child data
|
//delete the child data
|
||||||
$sql = "delete from ".$table_prefix.$child_table." ";
|
//$sql = "delete from ".$table_prefix.$child_table." ";
|
||||||
$sql .= "where ".$relation['field']." = :".$relation['field'];
|
//$sql .= "where ".$relation['field']." = :".$relation['field'];
|
||||||
$parameters[$relation['field']] = $row[$relation['field']];
|
//$parameters[$relation['field']] = $row[$relation['field']];
|
||||||
//$this->execute($sql, $parameters);
|
//$this->execute($sql, $parameters);
|
||||||
unset($parameters);
|
//unset($parameters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$x++;
|
$x++;
|
||||||
|
|||||||
Reference in New Issue
Block a user