Project

General

Profile

« Previous | Next » 

Revision 1213

Added by MaGnaL almost 15 years ago

Ticket #827: Fix false form-parameter when javascript is deactivated on users and groups temps (admintool).

View differences:

users.php
35 35
	exit(0);
36 36
}
37 37

  
38
// Set parameter 'action' as alternative to javascript mechanism
39
if(isset($_POST['modify']))
40
	$_POST['action'] = "modify";
41
if(isset($_POST['delete']))
42
	$_POST['action'] = "delete";
43

  
38 44
// Check if user id is a valid number and doesnt equal 1
39 45
if(!isset($_POST['user_id']) OR !is_numeric($_POST['user_id']) OR $_POST['user_id'] == 1) {
40 46
	header("Location: index.php");

Also available in: Unified diff