From 00dbfcb56b4d72007e955557ba6bb37ebd2aeae0 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Mon, 25 Feb 2008 02:04:49 +0000
Subject: [PATCH] Fix: Portability of SQL request

---
 htdocs/adherents/adherent.class.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php
index 4f49830169d..fd49cea9508 100644
--- a/htdocs/adherents/adherent.class.php
+++ b/htdocs/adherents/adherent.class.php
@@ -857,13 +857,13 @@ class Adherent extends CommonObject
 	{
 		$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."adherent WHERE login='$login'";
 	
-		$result=$this->db->query( $sql);
+		$resql=$this->db->query( $sql);
 	
-		if ($result)
+		if ($resql)
 		{
-			if ($this->db->num_rows())
+			if ($this->db->num_rows($resql))
 			{
-				$obj = $this->db->fetch_object($result);
+				$obj = $this->db->fetch_object($resql);
 				$this->fetch($obj->rowid);
 			}
 		}
-- 
GitLab