Changeset 53 for branches/old/index.php


Ignore:
Timestamp:
Feb 20, 2015, 9:38:00 AM (9 years ago)
Author:
chronos
Message:
  • Fixed: Switching measures from list of available graphs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.