Permalink
Browse files

Avoid SQL error during installation for admin_exists-check

  • Loading branch information...
andygrunwald committed Apr 1, 2018
1 parent 3e53321 commit e03facde8296e6b6da2fc26e0bb5dd4278ebbfde
Showing with 2 additions and 2 deletions.
  1. +2 −2 index_module.inc.php
@@ -8,13 +8,13 @@
}
$missing_fields = 0;
if ($func->admin_exists() and $_GET["mod"] != 'install') {
if ($_GET["mod"] != 'install' && $func->admin_exists()) {
// Check, if all required user data fields, are known and force user to add them, if not.
if ($auth['login'] and $auth['userid']) {
include_once('modules/usrmgr/missing_fields.php');
}
// Reset $auth['type'], if no permission to Mod
// Reset $auth['type'], if no permission to Mod
if ($auth['type'] > 1) {
// Has at least someone (with rights equal or above) access to this mod?
$permission = $db->qry_first("SELECT 1 AS found FROM %prefix%user_permissions AS p

0 comments on commit e03facd

Please sign in to comment.