X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=9a17fa15c7725804676dc7d0ae447aa3aaadddea;hp=68a6ae3326f7ff5e489b841f4661d12e3465098e;hb=c4ceb98e54f072c262519fc2ea31ccf6f8559049;hpb=2e0f1bfd10fc3d9fe9b43d29cc3e32622b262c63 diff --git a/inc/extensions.php b/inc/extensions.php index 68a6ae3326..9a17fa15c7 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -254,7 +254,7 @@ function EXTENSION_REGISTER ($ext_name, $task_id, $dry_run = false, $logout = tr //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, ":{$ext_name}/{$EXT_LOAD_MODE}"); if (($ext_name == "sql_patches") && (($EXT_LOAD_MODE == "register") || ($EXT_LOAD_MODE == "remove")) && (!$dry_run) && ($test)) { //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, ": LOAD!"); - if ($logout) { + if ($logout === true) { // Then redirect to logout LOAD_URL("modules.php?module=admin&logout=1&".$EXT_LOAD_MODE."=sql_patches"); } else { @@ -387,6 +387,7 @@ function GET_EXT_VERSION ($ext_name) { // Load from database $result = SQL_QUERY_ESC("SELECT ext_version FROM `{!_MYSQL_PREFIX!}_extensions` WHERE ext_name='%s' LIMIT 1", array($ext_name), __FILE__, __LINE__); + //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, ": DB - ".SQL_NUMROWS($result).""); // Is the extension there? if (SQL_NUMROWS($result) == 1) {