PHP notice

Undefined index: Королёв

/var/www/yurey/data/www/optimusgroup.ru/protected/modules/content/controllers/front/ClientcityController.php(156)

144     
145     public function getMapDpdDeliveryPointByCityName($cityName) {
146          
147         $cahceKey='dpdp-client-city-list';
148         $cityList=Yii::app()->cache->get($cahceKey);
149         if($cityList===false)
150         {
151             $this->actionResetDPDClientCityList();
152             $cityList=Yii::app()->cache->get($cahceKey);
153         }
154          
155         
156         return $cityList[$cityName];
157     }
158     
159     
160     
161     /*
162      * Запрос и кеширование всех пунктов выдачи для городов
163      * Должно дёргатся по крону
164      */
165     public function actionResetDPDClientCityList() {
166         
167         ini_set('default_socket_timeout', '500');
168         ini_set('memory_limit', '512M');

Stack Trace

#0
+
 /var/www/yurey/data/www/optimusgroup.ru/protected/modules/content/controllers/front/ClientcityController.php(122): ClientcityController->getMapDpdDeliveryPointByCityName("Королёв")
117         
118    
119           
120           
121          
122        $deliveryPoints=$this->getMapDpdDeliveryPointByCityName($cityOne->name);
123        //$deliveryPoints=array();
124        
125        
126       
127         $this->render('cityClientOne',array('model'=>$cityOne,'cityName'=>$cityOne->name,'delivery_points'=>$deliveryPoints));
#8
+
 /var/www/yurey/data/www/optimusgroup.ru/protected/components/WebApplicationEndBehavior.php(26): CApplication->run()
21         // Attach the changeModulePaths event handler
22         // and raise it.
23         $this->onModuleCreate = array($this, 'changeModulePaths');
24         $this->onModuleCreate(new CEvent($this->owner));
25  
26         $this->owner->run(); // Run application.
27     }
28  
29     // This event should be raised when CWebApplication
30     // or CWebModule instances are being initialized.
31     public function onModuleCreate($event)
#10
+
 /var/www/yurey/data/www/optimusgroup.ru/index.php(57): CComponent->__call("runEnd", array("front"))
52 // Remove the following lines when in production mode
53 defined('YII_DEBUG') or define('YII_DEBUG', true);
54 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
55  
56 require_once($yii);
57 Yii::createWebApplication($config)->runEnd('front');
58 
59 
60 
61 
62 
2024-03-28 21:05:33 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.12