|
@@ -198,13 +198,13 @@ class Info_Gates extends Object_ext {
|
|
*/
|
|
*/
|
|
public function maxPassGateId() {
|
|
public function maxPassGateId() {
|
|
$maxIndex = 0;
|
|
$maxIndex = 0;
|
|
- $maxGateId = 0;
|
|
|
|
|
|
+ //$maxGateId = 0;
|
|
foreach ($this->GateList as $gateId => $Ins_GateInfo) {
|
|
foreach ($this->GateList as $gateId => $Ins_GateInfo) {
|
|
if ($Ins_GateInfo->pass > 0 && Ins_GateInfo::gateNum($gateId) > $maxIndex) {
|
|
if ($Ins_GateInfo->pass > 0 && Ins_GateInfo::gateNum($gateId) > $maxIndex) {
|
|
$maxIndex = Ins_GateInfo::gateNum($gateId);
|
|
$maxIndex = Ins_GateInfo::gateNum($gateId);
|
|
- $maxGateId = $gateId;
|
|
|
|
|
|
+ //$maxGateId = $gateId;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return $maxGateId;
|
|
|
|
|
|
+ return $maxIndex;
|
|
}
|
|
}
|
|
}
|
|
}
|