Changeset 1292 for trunk/wifidog-auth/wifidog/classes/Statistics.php
- Timestamp:
- 09/13/07 11:23:24 (6 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/Statistics.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Statistics.php
r1271 r1292 369 369 $html = ''; 370 370 371 $name = "s tatistics_selected_nodes[]";371 $name = "selected_nodes[]"; 372 372 $user = User :: getCurrentUser(); 373 373 … … 398 398 */ 399 399 private function processSelectedNodesUI() { 400 $name = "s tatistics_selected_nodes";400 $name = "selected_nodes"; 401 401 //pretty_print_r($_REQUEST[$name]); 402 402 $this->report_selected_nodes = array (); … … 445 445 /** 446 446 * Process the date range selection UI 447 * @return true id options were set, false otherwise 447 448 */ 448 449 private function processDistinguishUsersByUI() { 449 if (!isset ($this->user_distinguish_by_options[$_REQUEST['distinguish_users_by']])) 450 throw new exception(_("Invalid parameter")); 451 $this->report_distinguish_users_by = $_REQUEST['distinguish_users_by']; 450 $retval = false; 451 if (empty($_REQUEST['distinguish_users_by'])) { 452 //Keep whatever was set before 453 } 454 else if (!isset ($this->user_distinguish_by_options[$_REQUEST['distinguish_users_by']])) { 455 throw new exception(_("Invalid parameter")); 456 } 457 else { 458 $this->report_distinguish_users_by = $_REQUEST['distinguish_users_by']; 459 $retval = true; 460 } 461 return $retval; 462 452 463 } 453 464
