Show
Ignore:
Timestamp:
09/13/07 11:23:24 (6 years ago)
Author:
benoitg
Message:
  • Scratch a few itches: Fix the link from node admin to stats, minor CSS fixes
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Statistics.php

    r1271 r1292  
    369369        $html = ''; 
    370370 
    371         $name = "statistics_selected_nodes[]"; 
     371        $name = "selected_nodes[]"; 
    372372        $user = User :: getCurrentUser(); 
    373373 
     
    398398     */ 
    399399    private function processSelectedNodesUI() { 
    400         $name = "statistics_selected_nodes"; 
     400        $name = "selected_nodes"; 
    401401        //pretty_print_r($_REQUEST[$name]); 
    402402        $this->report_selected_nodes = array (); 
     
    445445    /** 
    446446     * Process the date range selection UI 
     447     * @return true id options were set, false otherwise 
    447448     */ 
    448449    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         
    452463    } 
    453464