Warehouse article/improve modal
This commit is contained in:
@@ -241,12 +241,13 @@ class Termination extends mfBaseModel {
|
||||
$this->log->debug("is range");
|
||||
$port_parts = explode("-", $ports);
|
||||
if(is_array($port_parts) && count($port_parts) == 2) {
|
||||
$from = $port_parts[0];
|
||||
$to = $port_parts[1];
|
||||
$from = intval($port_parts[0]);
|
||||
$to = intval($port_parts[1]);
|
||||
|
||||
if($port_parts[0] > $port_parts[1]) {
|
||||
$from = $port_parts[1];
|
||||
$to = $port_parts[0];
|
||||
if($from > $to) {
|
||||
$tmp = $from;
|
||||
$from = $to;
|
||||
$to = $tmp;
|
||||
}
|
||||
|
||||
$range = [];
|
||||
|
||||
Reference in New Issue
Block a user