PHP warning

Use of undefined constant lab_for_sale - assumed 'lab_for_sale' (this will throw an Error in a future version of PHP)

/home/lareve6/public_html/protected/controllers/SalesController.php(85)

73                 // Set SEO/SEM content: Page Title and Meta Tags
74                 $this->pageTitle = Yii::app()->name . " | " . $array_sales_labels['lab_buy_sell_ads'];
75 
76                 $arrayDescription = Array();
77                 $arrayDescription[0] = $array_sales_labels['lab_buy_sell_ads'];
78                 $arrayKeywords = Array();
79                 $arrayKeywords[0] = $array_sales_labels['lab_buy_sell_ads'];
80                 $arrayAuthor = Array();
81 
82                 $this->metaTags = $this->graph->buildMetaTags($arrayDescription,$arrayKeywords,$arrayAuthor);
83 
84                 // Default post type:1 initially show only posts for instrument/equipment sales ads
85                 $list_title = $array_sales_labels[lab_for_sale]; 
86                 $alt_title  = $array_sales_labels[lab_buy];
87                 $alt_title_link = Yii::app()->request->baseUrl . "/sales/?id_sales_post_type=2";
88                 $criteria_alt = new CDbCriteria;
89                 $criteria_alt->addCondition("t.id_status = 1");
90 
91                 if (trim(CHttpRequest::getParam('id_sales_post_type')) == 2) {
92                     $default_id_sales_post_type = 2;
93                     $list_title = $array_sales_labels[lab_buy]; 
94                     $alt_title  = $array_sales_labels[lab_for_sale]; 
95                     $alt_title_link = Yii::app()->request->baseUrl . "/sales";
96                     $criteria_alt->addCondition("t.id_sales_post_type = 1");
97                 } else {

Stack Trace

#7
+
 /home/lareve6/public_html/index.php(91): CApplication->run()
86                                                          'España', 
87                                                          'United States', 
88                                                          'Uruguay', 
89                                                          'Venezuela'));
90 UserIdentity::recoverSession();
91 $app->run();
2022-01-28 19:54:54 Apache Yii Framework/1.1.10