PHP notice

Undefined variable: slug

/home/apache/organization/www/protected/components/OrganizationUrlRule.php(218)

206                             $url = "/".$this -> createUrl($manager, 'organization/tag', array('slug'=>$tag), "&");
207                             $request->redirect($url, TRUE, 301);
208                         }
209                     }
210 
211                     $_GET['slug']=$tag;
212 
213                     if ("uslugi-tovary" == $exploded[0])
214                     {
215                         $tagType=Yii::app()->db->createCommand()
216                                     ->select('type_tag, id')
217                                     ->from(Yii::app()->params['tagTable'])
218                                     ->where('slug=?',array($slug))
219                                     ->queryRow();  
220                     
221                         $subcategoryId=Yii::app()->db->createCommand()
222                                     ->select('id_category')
223                                     ->from('tag_category_assn')
224                                     ->where('id_tag=?',array($tagType['id']))
225                                     ->queryRow(); 
226                     
227                         $subcategory=Yii::app()->db->createCommand()
228                                     ->select('*')
229                                     ->from('organization_category')
230                                     ->where('id=?',array((int)$subcategoryId['id_category']))

Stack Trace

#3
+
 /home/apache/organization/www/index.php(26): CApplication->run()
21 $config='protected/config/main.php';
22 define('DEV_MODE',($_SERVER['SERVER_NAME']=='127.0.0.1' || $_SERVER['SERVER_NAME'] == "organization.ns3.handyhosting.ru"));
23 $yii=DEV_MODE ? '../../yii-framework/yii-1.1.13/yii.php':'../../yii-framework/yii-1.1.13/yiilite.php';
24 define('YII_DEBUG',true);
25 require($yii);
26 Yii::createWebApplication($config)->run();
2024-03-29 01:50:06 Apache/2.2.15 (CentOS) Yii Framework/1.1.13