Revision 321
Added by stefan over 18 years ago
class.admin.php | ||
---|---|---|
198 | 198 |
} |
199 | 199 |
|
200 | 200 |
function get_page_details($page_id) { |
201 |
global $database; |
|
201 | 202 |
$query = "SELECT page_id,page_title,modified_by,modified_when FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'"; |
202 | 203 |
$results = $database->query($query); |
203 | 204 |
if($database->is_error()) { |
... | ... | |
225 | 226 |
$users=$page[$action_users]; |
226 | 227 |
} else { |
227 | 228 |
global $database; |
228 |
$results = $database->query("SELECT $action_groups,$action_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'");
|
|
229 |
$results = $database->query("SELECT $action_groups,$action_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page'"); |
|
229 | 230 |
$result = $results->fetchRow(); |
230 | 231 |
$groups = explode(',', str_replace('_', '', $result[$action_groups])); |
231 | 232 |
$users = explode(',', str_replace('_', '', $result[$action_users])); |
Also available in: Unified diff
Fixed bugs in the new functions in class.admin.php.