From 8c0b458226f377081baf4f86b3a099ef55ccb20a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Mon, 29 Sep 2003 21:10:35 +0000 Subject: [PATCH] BugFix --- lib/MECON/Usuario.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } } -- 2.43.0