dblayer : correct the regression introduced in 2362
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2364 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -480,7 +480,7 @@ class dblayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the foreign keys constrains are valid before doing the insertion
|
// Check if the foreign keys constrains are valid before doing the insertion
|
||||||
foreach ($this->foreign as $foreign=>$data)
|
foreach ($this->foreign as $foreign=>$d)
|
||||||
{
|
{
|
||||||
if ($updatekey === false)
|
if ($updatekey === false)
|
||||||
{
|
{
|
||||||
@@ -505,11 +505,11 @@ class dblayer
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! array_key_exists ($foreign, $data))
|
if (! array_key_exists ($foreign, $d))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$table = $data[0];
|
$table = $d[0];
|
||||||
$column = $data[1];
|
$column = $d[1];
|
||||||
$req = "SELECT $this->sep$column$this->sep ".
|
$req = "SELECT $this->sep$column$this->sep ".
|
||||||
"FROM $this->sep$this->tableprefix$table$this->sep ".
|
"FROM $this->sep$this->tableprefix$table$this->sep ".
|
||||||
"WHERE $this->sep$column$this->sep=:".md5 ($column);
|
"WHERE $this->sep$column$this->sep=:".md5 ($column);
|
||||||
|
|||||||
Reference in New Issue
Block a user