Skip to content
Snippets Groups Projects
Commit 2d683459 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #5628 compatibility with oracle

parent bc728d6c
No related branches found
No related tags found
No related merge requests found
......@@ -58,11 +58,12 @@ if($stmt->rowCount() == 0)
}
else
{
$stmt=$db->query("SELECT coll_id FROM doctypes WHERE type_id = ?", array($s_id));
$stmt = $db->query("SELECT coll_id FROM doctypes WHERE type_id = ?", array($s_id));
$collId = $stmt->fetchObject();
$table = $sec->retrieve_table_from_coll($collId->coll_id);
$table = $sec->retrieve_table_from_coll($collId->coll_id);
$stmt = $db->query("SELECT res_id FROM ". $table ." WHERE type_id = ? limit 1", array($s_id));
$query = $db->limit_select(0, 1, 'res_id', $table, 'type_id = ?');
$stmt = $db->query($query, array($s_id));
if($stmt->rowCount() == 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment