BUG dblayer : if the foreign keys are not modified, we don't check if they are correct
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1617 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -482,6 +482,10 @@ class dblayer extends PDO
|
|||||||
// Check if the foreign keys constrains are valid before doing the update
|
// Check if the foreign keys constrains are valid before doing the update
|
||||||
foreach ($this->foreign as $foreign=>$data)
|
foreach ($this->foreign as $foreign=>$data)
|
||||||
{
|
{
|
||||||
|
// If the foreign keys are not modified, we don't check if they are
|
||||||
|
// correct
|
||||||
|
if (!isset ($datasOK[$foreign]))
|
||||||
|
continue;
|
||||||
$table = $data[0];
|
$table = $data[0];
|
||||||
$column = $data[1];
|
$column = $data[1];
|
||||||
$req = "SELECT $column FROM `$this->tableprefix$table` ".
|
$req = "SELECT $column FROM `$this->tableprefix$table` ".
|
||||||
|
|||||||
Reference in New Issue
Block a user