Changeset 53 for branches/old


Ignore:
Timestamp:
Feb 20, 2015, 9:38:00 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: Switching measures from list of available graphs.
Location:
branches/old
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/old/database.php

    r51 r53  
    77{
    88  var $Prefix = '';
     9
     10  function query($Query)
     11  {
     12    //echo($Query."<br/>\n");
     13    return(parent::query($Query));
     14  }
    915
    1016  function select($Table, $What = '*', $Condition = 1)
  • branches/old/index.php

    r52 r53  
    157157$Output .= '<br>';
    158158
    159 $Result = $Database->select('measure', 'id', '(Enabled=1) AND ((PermissionView="all") OR (PermissionView="'.gethostbyaddr($_SERVER['REMOTE_ADDR']).'")) WHERE Id='.$_SESSION['Measure']);
     159$Result = $Database->select('measure', 'Id', '(Enabled=1) AND (PermissionView="all") OR (PermissionView="'.gethostbyaddr($_SERVER['REMOTE_ADDR']).'") AND (Id='.$_SESSION['Measure'].')');
    160160if($Result->num_rows == 0) $_SESSION['Measure'] = $Config['DefaultVariables']['Measure'];
    161161
Note: See TracChangeset for help on using the changeset viewer.