From 53e7340aa16fb42128f13d5fff2c3b1513d2dbcc Mon Sep 17 00:00:00 2001 From: Marco Rougeth Date: Mon, 25 Aug 2014 14:50:04 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20bug=20no=20filtro=20p?= =?UTF-8?q?or=20e-mail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e77e675..6607f08 100644 --- a/index.php +++ b/index.php @@ -134,7 +134,7 @@ if ($formdata = $mform->get_data()) { } // Email filter - if (array_key_exists('email', $formdata)) { + if (array_key_exists('email', $formdata) and !empty($formdata->email)) { $email_like = $DB->sql_like('u.email', "'%{$formdata->email}%'", false); $whereors[] = "($email_like)"; }