Skip to content

Commit

Permalink
Fixed E_NOTICE bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Nov 18, 2017
1 parent 1472e6d commit e60bfe1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public_html/admin/group.php
Expand Up @@ -2,13 +2,13 @@

/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
// | Geeklog 2.1 |
// | Geeklog 2.2 |
// +---------------------------------------------------------------------------+
// | group.php |
// | |
// | Geeklog group administration page. |
// +---------------------------------------------------------------------------+
// | Copyright (C) 2000-2011 by the following authors: |
// | Copyright (C) 2000-2017 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
Expand Down Expand Up @@ -263,16 +263,15 @@ function editgroup($grp_id = '')

if ($A['grp_gl_core'] == 1) {
$inclause = str_replace(' ', ',', $selected);
$sql = "SELECT grp_id, grp_name, grp_descr FROM {$_TABLES['groups']} WHERE grp_id <> $grp_id AND grp_id IN ($inclause)";
$sql = "SELECT grp_id, grp_name, grp_descr, grp_gl_core FROM {$_TABLES['groups']} WHERE grp_id <> $grp_id AND grp_id IN ($inclause)";
} else {
$xsql = '';
if (!empty($grp_id)) {
$xsql = " AND (grp_id <> $grp_id)";
}
$sql = "SELECT grp_id, grp_name, grp_descr FROM {$_TABLES['groups']} WHERE (grp_name <> 'Root')" . $xsql . ' AND ' . $whereGroups;
$sql = "SELECT grp_id, grp_name, grp_descr, grp_gl_core FROM {$_TABLES['groups']} WHERE (grp_name <> 'Root')" . $xsql . ' AND ' . $whereGroups;
}


// Create a complete list of inherited groups for this group being edited so we know what needs to be disabled on screen
$resultA = DB_query($sql, 1);
$nrowsA = DB_numRows($resultA);
Expand Down

0 comments on commit e60bfe1

Please sign in to comment.