From: Martín Marrese Date: Mon, 29 Sep 2003 21:10:35 +0000 (+0000) Subject: BugFix X-Git-Tag: svn_import~250 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/8c0b458226f377081baf4f86b3a099ef55ccb20a?ds=inline BugFix --- diff --git a/lib/MECON/Usuario.php b/lib/MECON/Usuario.php index ca99897..818a85e 100644 --- a/lib/MECON/Usuario.php +++ b/lib/MECON/Usuario.php @@ -312,15 +312,12 @@ class MECON_Usuario { WHERE "; if ($login) { - $sql.= ' u.login LIKE \'%'.$login.'%\'' + $sql.= ' u.login LIKE \'%'.$login.'%\''; } else { - $sql.= ' u.nombre LIKE \'%'.$nombre.'%\'' + $sql.= ' u.nombre LIKE \'%'.$nombre.'%\''; } $result = $db->query($sql); - if (PEAR::isError($result)) { - return $result; - } return $result; } }