// This patched function will reduce many SELECT queries for the specified or current admin login
function isAdmin ($adminLogin = '') {
// No admin in installation phase!
- if (isInstallationPhase()) {
+ if ((isInstallationPhase()) || (!isAdminRegistered())) {
return false;
} // END - if