Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TimeMeasure/Measurement/WoW.php

    r873 r874  
    1212    $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1');
    1313    $Row = $DbResult->fetch_array();
    14     return ($Row[0]);
     14    return $Row[0];
    1515  }
    1616
     
    2020    $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1 AND gmlevel > 0');
    2121    $Row = $DbResult->fetch_array();
    22     return ($Row[0]);
     22    return $Row[0];
    2323  }
    2424
     
    2828    $DbResult = $Database->query('SELECT COUNT(*) FROM account');
    2929    $Row = $DbResult->fetch_array();
    30     return ($Row[0]);
     30    return $Row[0];
    3131  }
    3232
     
    3636    $DbResult = $Database->query('SELECT COUNT(*) FROM guild');
    3737    $Row = $DbResult->fetch_array();
    38     return ($Row[0]);
     38    return $Row[0];
    3939  }
    4040
     
    4444    $DbResult = $Database->query('SELECT COUNT(*) FROM `characters`');
    4545    $Row = $DbResult->fetch_array();
    46     return ($Row[0]);
     46    return $Row[0];
    4747  }
    4848
     
    5252    $DbResult = $Database->query('SELECT COUNT(*) FROM uptime');
    5353    $Row = $DbResult->fetch_array();
    54     return ($Row[0]);
     54    return $Row[0];
    5555  }
    5656
    5757  function WoWEmulatorAvailability()
    5858  {
    59     if (CheckPortStatus('localhost', 8085)) return (100); else return (0);
     59    if (CheckPortStatus('localhost', 8085)) return 100;
     60      else return 0;
    6061  }
    6162
     
    6970    $Row = $DbResult->fetch_array();
    7071    $Value = $Row[0];
    71     return ($Value);
     72    return $Value;
    7273  }
    7374}
Note: See TracChangeset for help on using the changeset viewer.