add cast and quoted
This commit is contained in:
parent
70a1815b9c
commit
8f29d5c0eb
@ -66,7 +66,7 @@ foreach ($TMoChilds as $key => $objectlink) {
|
||||
|
||||
// we want to make the link via element_element for delete action
|
||||
$sql = ' Select rowid from ' . MAIN_DB_PREFIX . 'element_element';
|
||||
$sql .= ' WHERE fk_source = '. $object->id . ' and fk_target = ' . $key;
|
||||
$sql .= ' WHERE fk_source = '. (int) $object->id . ' and fk_target = "' . $key .'"';
|
||||
|
||||
$resql = $db->query($sql);
|
||||
$k = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user