1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 15:16:44 +02:00

MySQL: Simplify condition in fk_support

This commit is contained in:
Jakub Vrana
2025-03-26 03:29:22 +01:00
parent 41aad5bc37
commit 012562571a

View File

@@ -590,8 +590,7 @@ if (!defined('Adminer\DRIVER')) {
* @return bool
*/
function fk_support($table_status) {
return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"])
|| (preg_match('~NDB~i', $table_status["Engine"]) && min_version(5.6));
return preg_match('~InnoDB|IBMDB2I' . (min_version(5.6) ? '|NDB' : '') . '~i', $table_status["Engine"]);
}
/** Get information about fields