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/NetworkConfigRouterOS/Generators/Common.php

    r873 r874  
    99  {
    1010    $DbRow = $DbResult->fetch_assoc();
    11     return ($DbRow['Id']);
     11    return $DbRow['Id'];
    1212  } else
    1313  {
    1414    $DbResult = $Database->query('INSERT INTO `NetworkMark` (`Comment`) VALUES ("'.$Comment.'")');
    15     return ($Database->insert_id);
     15    return $Database->insert_id;
    1616  }
    1717}
     
    2525  {
    2626    $DbRow = $DbResult->fetch_assoc();
    27     return ($DbRow['Id']);
     27    return $DbRow['Id'];
    2828  } else
    2929  {
    3030    $DbResult = $Database->query('INSERT INTO `NetworkMangleSubgroup` (`AddressRange`) VALUES ("'.$AddressRange.'")');
    31     return ($Database->insert_id);
     31    return $Database->insert_id;
    3232  }
    3333}
Note: See TracChangeset for help on using the changeset viewer.