DengTao 8 жил өмнө
parent
commit
2e1e4910d1

+ 2 - 2
www/protected/commands/GetKennelDetailWorkCommand.php

@@ -134,8 +134,8 @@ class GetKennelDetailWorkCommand extends CConsoleCommand {
                             $tmp['father_info']['avatar'] = $tmp['extra']['parents'][0]['pic'];
                         if (isset($tmp['extra']['parents'][1]['pic']))
                             $tmp['mother_info']['avatar'] = $tmp['extra']['parents'][1]['pic'];
-                        $dealPet->father_info = (Object)$tmp['father_info'];
-                        $dealPet->mother_info = (Object)$tmp['mother_info'];
+                        $dealPet->father_info = (object)$tmp['father_info'];
+                        $dealPet->mother_info = (object)$tmp['mother_info'];
                         $dealPet->desc = $tmp['desc'];
                         $dealPet->vaccine_info = array();
                         if (isset($tmp['extra'])){