X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=6df25311c6e342088fb03a13730bbbcc411eaa74;hp=2c7ea72a2b1512901cb5122b5a4592531b11577c;hb=b4df691a2d9cabc94a6def5bd1ee3d4945d5efd4;hpb=fbc554cf7de9aa561d6b1222a1a69059d3f794e3 diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 2c7ea72a2b..6df25311c6 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -428,6 +428,12 @@ function isMember () { // Fetch user data for given user id function fetchUserData ($value, $column = 'userid') { + // Extension ext-user must be there at any case + if (!isExtensionActive('user')) { + // Absent ext-user is really not good + return false; + } // END - if + // If we should look for userid secure&set it here if (substr($column, -2, 2) == 'id') { // Secure userid @@ -444,9 +450,6 @@ function fetchUserData ($value, $column = 'userid') { // Use cache, so it is fine return true; } - } elseif (!isExtensionActive('user')) { - // Absent ext-user is really not good - return false; } elseif (isUserDataValid()) { // Using cache is fine return true;