From e90df614889119f3a023f74b9ef51ad2bce0084e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 30 Jun 2011 02:06:50 +0000 Subject: [PATCH] Better this way --- inc/mysql-manager.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index e1ed9ac4ea..121ff9c02e 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -444,8 +444,11 @@ function fetchUserData ($value, $column = 'userid') { // Use cache, so it is fine return true; } - } elseif ((isUserDataValid()) || (!isExtensionActive('user'))) { - // Using cache or absend ext-user is fine here + } elseif (!isExtensionActive('user')) { + // Absent ext-user is really not good + return false; + } elseif (isUserDataValid()) { + // Using cache is fine return true; } -- 2.39.2