[Notice] Undefined offset: 0 (@line 237 in file /home/apache/sites/freesat.co.uk/1.28/protected/pages/products/Products.php).
/home/apache/sites/freesat.co.uk/1.28/protected/pages/products/Products.php (237)
0226: $sqlmap = $this->Application->Modules['my-sqlmap']->Client;
0227: if ($this->getRequest()->itemAt('type_id')){
0228: $result = $sqlmap->queryForList('SelectProductsByTypeWithManufacturer',$this->getRequest()->itemAt('type_id'));
0229: $this->heading = $result[0]->type." Products";
0230: $this->tagline = $result[0]->type_tagline;
0231: $this->intro = $result[0]->type_text;
0232: $this->renderOffer();
0233: // print_r($result[0]);
0234: }
0235: elseif ($this->getRequest()->itemAt('manufacturer_id')){
0236: $result = $sqlmap->queryForList('SelectProductsByManufacturer2',$this->getRequest()->itemAt('manufacturer_id'));
0237: $this->heading = $result[0]->manufacturer." Products";
0238: $this->tagline = $result[0]->manufacturer_tagline;
0239: $this->intro = $result[0]->manufacturer_text;
0240: // print_r($result[0]);
0241: // $this->tagline = ' ';
0242: }
0243: else{
0244: // @todo redirect to 404 or error page
0245: throw new Exception('must have type_id or manufacturer_id');
0246: }
0247: $this->products = $result;
0248:
0249: }
#0 /home/apache/sites/freesat.co.uk/1.28/protected/pages/products/Products.php(237): PradoBase::phpErrorHandler(8, 'Undefined offse...', '/home/apache/si...', 237, Array)
#1 /home/apache/sites/freesat.co.uk/1.28/protected/pages/products/Products.php(135): Products->getProducts()
#2 /home/apache/sites/freesat.co.uk/1.28/prado/Web/UI/TControl.php(1286): Products->onLoad(NULL)
#3 /home/apache/sites/freesat.co.uk/1.28/prado/Web/UI/TPage.php(210): TControl->loadRecursive()
#4 /home/apache/sites/freesat.co.uk/1.28/prado/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#5 /home/apache/sites/freesat.co.uk/1.28/prado/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#6 /home/apache/sites/freesat.co.uk/1.28/prado/Web/Services/TPageService.php(420): TPageService->runPage(Object(Products), Array)
#7 /home/apache/sites/freesat.co.uk/1.28/prado/TApplication.php(1066): TPageService->run()
#8 /home/apache/sites/freesat.co.uk/1.28/prado/TApplication.php(376): TApplication->runService()
#9 /home/apache/sites/freesat.co.uk/1.28/index.php(78): TApplication->run()
#10 {main}