TPhpErrorException

Description

[Notice] Undefined variable: data (@line 33 in file /home/rove2012/web/rovefigure.com/public_html/protected/function/modelRelationship.php).

Source File

/home/rove2012/web/rovefigure.com/public_html/protected/function/modelRelationship.php (33)

0022:                 $offset = 0;
0023:                 
0024:             if($offset + $limit > $iCount)
0025:                 $limit = $iCount - $offset;
0026:             
0027:             $sql = str_replace('count(relationship_id)', '*', $sql);
0028:             $sql .= " LIMIT ".$offset.", ".$limit;        
0029:             
0030:             $connect->setQuery($sql);
0031:             $data = $connect->getRows(2);
0032:         }
0033: return array('total'=>$iCount, 'data'=>$data);
0034: } 0035: 0036: public function getRelationship($id) 0037: { 0038: global $connect, $config; 0039: 0040: $arrWhere = array(":relationship_id"=>$id); 0041: $sql = "SELECT * 0042: FROM ".$config["table_relationship"]." 0043: WHERE relationship_id = :relationship_id"; 0044: 0045: $connect->setQuery($sql, $arrWhere);

Stack Trace

#0 /home/rove2012/web/rovefigure.com/public_html/protected/function/modelRelationship.php(33): PradoBase::phpErrorHandler(8, 'Undefined varia...', '/home/rove2012/...', 33, Array)
#1 /home/rove2012/web/rovefigure.com/public_html/protected/pages/relationship.php(71): modelRelationship->getRelationshipWithFilter(Array)
#2 /home/rove2012/web/rovefigure.com/public_html/framework/Web/UI/TControl.php(1314): relationship->onLoad(NULL)
#3 /home/rove2012/web/rovefigure.com/public_html/framework/Web/UI/TPage.php(216): TControl->loadRecursive()
#4 /home/rove2012/web/rovefigure.com/public_html/framework/Web/UI/TPage.php(197): TPage->processNormalRequest(Object(THtmlWriter))
#5 /home/rove2012/web/rovefigure.com/public_html/framework/Web/Services/TPageService.php(522): TPage->run(Object(THtmlWriter))
#6 /home/rove2012/web/rovefigure.com/public_html/framework/Web/Services/TPageService.php(468): TPageService->runPage(Object(relationship), Array)
#7 /home/rove2012/web/rovefigure.com/public_html/framework/TApplication.php(1219): TPageService->run()
#8 /home/rove2012/web/rovefigure.com/public_html/framework/TApplication.php(408): TApplication->runService()
#9 /home/rove2012/web/rovefigure.com/public_html/index.php(44): TApplication->run()
#10 {main}
2019-01-17 13:34 Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.6.36 PRADO/3.3.3