PHP warning

Undefined variable $category

/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_ProductController.php(389)

377                 }
378                 
379                 $this->data["business"] = $business;
380             }
381             $category         = getCategoryDetails( $product->productCategoryId );
382             $productImage     = getProductImage( $product->id );
383             $product->image   = $productImage ? $productImage->documentPath : "";
384             $product->imageId = $productImage ? $productImage->id : "";
385 
386             $this->data["product"]  = $product;
387         }
388         
389         $this->data["category"] = $category ? $category : "";
390         $this->data["offers"]   = loadOffersByBusiness($business);
391         $this->data["products"] = loadProductsByBusinessId($business->id);
392         $this->data["productDetailsPage"] = TRUE;
393         
394         $this->render( "details" );
395     }
396     
397     public function actionDelete()
398     {
399         if( empty( Yii::app()->session["userId"] ) )
400         {
401             redirect( baseUrl()."user/login" );

Stack Trace

#12
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/catalogafaceri.ro/public_html/index.php(44): CApplication->run()
39 define( "LANGUAGE_PATH", BASE_PATH."protected/languages/" );
40 
41 date_default_timezone_set( "Europe/Bucharest" );
42 
43 require_once( $yii );
44 Yii::createWebApplication( $config )->run();
2024-03-19 06:48:29 Apache Yii Framework/1.1.10