probleme lors du precedent commit ..
This commit is contained in:
parent
f16f87506a
commit
c2de6e80d2
@ -283,11 +283,11 @@ class Adherent
|
|||||||
*/
|
*/
|
||||||
/* Fetch adherent corresponding to login passed in argument */
|
/* Fetch adherent corresponding to login passed in argument */
|
||||||
Function fetch_login($login){
|
Function fetch_login($login){
|
||||||
$sql = "SELECT d.rowid FROM llx_adherent WHERE login='$login' LIMIT 1";
|
$sql = "SELECT rowid FROM llx_adherent WHERE login='$login' LIMIT 1";
|
||||||
if ( $this->db->query( $sql) ){
|
if ( $this->db->query( $sql) ){
|
||||||
if ($this->db->num_rows()){
|
if ($this->db->num_rows()){
|
||||||
$obj = $this->db->fetch_object(0);
|
$obj = $this->db->fetch_object(0);
|
||||||
fetch($obj->rowid);
|
$this->fetch($obj->rowid);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
print $this->db->error();
|
print $this->db->error();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user