TPhpErrorException

Description

[Notice] Undefined offset: 0 (@line 20 in file /home/hpnrpco/public_html/HP/protected/Pages/Dialogs/ShowUpdatePriceList.php).

Source File

/home/hpnrpco/public_html/HP/protected/Pages/Dialogs/ShowUpdatePriceList.php (20)

0009:         if(!$this->IsPostBack)
0010:         {
0011:             $this->priceList = $this->GetProductAll();
0012:         }
0013:     }
0014:     
0015:     
0016:   public function GetProductAll()
0017:   {
0018:     $roles = array();
0019:         $roles = $this->User->Roles;
0020: $role = $roles[0];
0021: 0022: 0023: $DAProduct = new DAProduct(); 0024: $data = $DAProduct->SelectProductAll(null, "ProductID", null); 0025: $_data = ""; 0026: $index = 0; 0027: $_data = "<table border=\"1\" celpadding=\"0\" cellspacing=\"0\" width=\"640px\" align=\"center\"><tr><td align=\"center\"><img src=\"Images/Home/updatedPrice.jpg\" /></td></tr><tr><td width=\"100%\" align=\"center\"><table celpadding=\"1\" cellspacing=\"20\" border=\"0\" style=\"font-family:tahoma;font-size:9pt;\" width=\"540px\" align=\"center\">"; 0028: 0029: if(count($data) > 0) 0030: { 0031: 0032: if($role == "teamate" || $role == "administrator")

Stack Trace

#0 /home/hpnrpco/public_html/HP/protected/Pages/Dialogs/ShowUpdatePriceList.php(20): PradoBase::phpErrorHandler(8, 'Undefined offse...', '/home/hpnrpco/p...', 20, Array)
#1 /home/hpnrpco/public_html/HP/protected/Pages/Dialogs/ShowUpdatePriceList.php(11): ShowUpdatePriceList->GetProductAll()
#2 /home/hpnrpco/public_html/Prado/framework/Web/UI/TControl.php(1286): ShowUpdatePriceList->onLoad(NULL)
#3 /home/hpnrpco/public_html/Prado/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#4 /home/hpnrpco/public_html/Prado/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#5 /home/hpnrpco/public_html/Prado/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#6 /home/hpnrpco/public_html/Prado/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(ShowUpdatePriceList), Array)
#7 /home/hpnrpco/public_html/Prado/framework/TApplication.php(1066): TPageService->run()
#8 /home/hpnrpco/public_html/Prado/framework/TApplication.php(376): TApplication->runService()
#9 /home/hpnrpco/public_html/HP/index.php(25): TApplication->run()
#10 {main}
2014-09-01 15:40 LiteSpeed PRADO/3.1.2a