FIX получение массива точек

This commit is contained in:
Krivchikov Dmitry 2014-04-04 11:08:44 +04:00
parent c92baf7171
commit 46cbb827b2
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ class JsonController extends Controller
$categories = $categories->getAll();
foreach ($points as &$point) {
$point->categoryIcon = $categories[$point->categoryId]['icon'];
$point->categoryName = $categories[$point->categoryId]['name'];
$point['categoryIcon'] = $categories[$point['categoryId']]['icon'];
$point['categoryName'] = $categories[$point['categoryId']]['name'];
}
self::renderPartial('json.php', array(