- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
$response['formPassport']['disable'] = true;
if ($houseRevision->getStage() == HouseStage::EXPLOITED or $houseRevision->getStage() == HouseStage::DECOMMISSIONED or $houseRevision->getStage() == HouseStage::DRIFTING) {
$response['formPassport']['disable'] = false;
}
if (!empty($items['result'])) {
$response['formPassport']['success'] = true;
} else {
$response['formPassport']['success'] = false;
}
Slider_123 30.03.2015 15:11 # 0
$response['formPassport'] = $items['result'][0];
только код потом узнает, что $items['result'] пустой