// Is the script installed?
if (isInstalled()) {
// Is the admin logged-in and no sql_patches installed?
if ((IS_ADMIN()) && (!EXT_IS_ACTIVE('sql_patches'))) {
// Extension 'sql_patches' is missing!
// Is the script installed?
if (isInstalled()) {
// Is the admin logged-in and no sql_patches installed?
if ((IS_ADMIN()) && (!EXT_IS_ACTIVE('sql_patches'))) {
// Extension 'sql_patches' is missing!