Skip to content
Snippets Groups Projects
Commit a4d771aa authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Uniformize coding

parent 39bbb5e7
No related branches found
No related tags found
No related merge requests found
......@@ -85,9 +85,10 @@ if (strlen(trim($_GET["search_societe"])))
$sql.= " ORDER BY $sortfield $sortorder ";
$sql.= $db->plimit($conf->liste_limit+1, $offset);
if ( $db->query($sql) )
$resql=$db->query($sql);
if ($resql)
{
$num = $db->num_rows();
$num = $db->num_rows($resql);
$i = 0;
if (!$statut)
......@@ -119,7 +120,7 @@ if ( $db->query($sql) )
while ($i < min($num,$conf->liste_limit))
{
$obj = $db->fetch_object();
$obj = $db->fetch_object($resql);
$var=!$var;
print '<tr '.$bc[$var].'>';
......
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