From 028c126994e6a0ee79f07a9c4a91f2cc4a3bcc56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 15 Aug 2011 12:31:45 +0000 Subject: [PATCH] SQL fixed (opps) --- inc/mysql-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index a836da97b4..52d051cd09 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -678,7 +678,7 @@ function isEmailTaken ($email) { FROM `{?_MYSQL_PREFIX?}_user_data` WHERE - REGEX '%s' `email` AND + '%s' REGEXP `email` AND `userid` %s LIMIT 1", array( @@ -697,7 +697,7 @@ LIMIT 1", } // Validate the given menu action -function isMenuActionValid ($mode, $action, $what, $updateEntry=false) { +function isMenuActionValid ($mode, $action, $what, $updateEntry = false) { // Is the cache entry there and we shall not update? if ((isset($GLOBALS['action_valid'][$mode][$action][$what])) && ($updateEntry === false)) { // Count cache hit -- 2.39.5