Skip to content
Snippets Groups Projects
Commit 7f20ddb2 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with specific postgres command

parent bdb30260
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class LinkController ...@@ -162,7 +162,7 @@ class LinkController
if ($result) { if ($result) {
$i = 0; $i = 0;
$links = ''; $links = '';
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$links .= $row['res_child'].'||'; $links .= $row['res_child'].'||';
$i++; $i++;
} }
...@@ -185,7 +185,7 @@ class LinkController ...@@ -185,7 +185,7 @@ class LinkController
if ($result) { if ($result) {
$i = 0; $i = 0;
$links = ''; $links = '';
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$links .= $row['res_child'].'||'; $links .= $row['res_child'].'||';
$i++; $i++;
} }
...@@ -208,7 +208,7 @@ class LinkController ...@@ -208,7 +208,7 @@ class LinkController
if ($result) { if ($result) {
$i = 0; $i = 0;
$links = ''; $links = '';
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$links .= $row['res_parent'].'||'; $links .= $row['res_parent'].'||';
$i++; $i++;
} }
...@@ -235,7 +235,7 @@ class LinkController ...@@ -235,7 +235,7 @@ class LinkController
$result = $db->query($query); $result = $db->query($query);
if ($result) { if ($result) {
$i = 0; $i = 0;
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$return = $row; $return = $row;
$i++; $i++;
} }
...@@ -252,7 +252,7 @@ class LinkController ...@@ -252,7 +252,7 @@ class LinkController
$result = $db->query($query); $result = $db->query($query);
if ($result) { if ($result) {
$i = 0; $i = 0;
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$return = $row['label_status']; $return = $row['label_status'];
$i++; $i++;
} }
...@@ -270,7 +270,7 @@ class LinkController ...@@ -270,7 +270,7 @@ class LinkController
$query = "SELECT res_child FROM res_linked WHERE coll_id='" . $collection . "' AND res_parent=" . $id; $query = "SELECT res_child FROM res_linked WHERE coll_id='" . $collection . "' AND res_parent=" . $id;
$result = $db->query($query); $result = $db->query($query);
if ($result) { if ($result) {
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$i++; $i++;
} }
} }
...@@ -280,7 +280,7 @@ class LinkController ...@@ -280,7 +280,7 @@ class LinkController
$query = "SELECT res_parent FROM res_linked WHERE coll_id='" . $collection . "' AND res_child=" . $id; $query = "SELECT res_parent FROM res_linked WHERE coll_id='" . $collection . "' AND res_child=" . $id;
$result = $db->query($query); $result = $db->query($query);
if ($result) { if ($result) {
while ($row = pg_fetch_assoc($result)) { while ($row = $db->fetch_assoc($result)) {
$i++; $i++;
} }
} }
......
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