TPhpErrorException

Description

[Unknown Error] The each() function is deprecated. This message will be suppressed on further calls (@line 57 in file /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php).

Source File

/home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php (57)

0046:             if (!$this->settings['loaded']) $this->loadSetting (true);
0047:         }        
0048:     }
0049:     /**
0050:      * digunakan untuk populate setting
0051:      */
0052:     private function populateSetting () {
0053:         $str = 'SELECT setting_id,`key`,`value` FROM setting';
0054:         $this->db->setFieldTable(array('setting_id','key','value'));
0055:         $r=$this->db->getRecord($str);
0056:         $result=array();
0057: while (list($k,$v)=each($r)) {
0058: $result[$v['key']]=array('setting_id'=>$v['setting_id'],'key'=>$v['key'],'value'=>$v['value']); 0059: } 0060: return $result; 0061: } 0062: /** 0063: * digunakan untuk mendapat nilai setting 0064: * @param type $mode 0065: * @return type 0066: */ 0067: public function getSettingValue($keys,$mode='value') { 0068: $value=$this->settings[$keys][$mode]; 0069: if ($value=='') {

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(8192, 'The each() func...', '/home2/sttitpi/...', 57, Array)
#1 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php(57): each(Array)
#2 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php(34): Logic_Setup->populateSetting()
#3 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php(43): Logic_Setup->loadSetting(true)
#4 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/Logic_Setup.php(26): Logic_Setup->loadSetting()
#5 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/logic/LogicFactory.php(24): Logic_Setup->__construct(Object(MySQL))
#6 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/MainPage.php(205): LogicFactory->getInstanceOfClass('Setup')
#7 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/MainPage.php(182): MainPage->getLogic('Setup')
#8 /home2/sttitpi/pmb.sttindonesia.ac.id/protected/MainPageF.php(4): MainPage->OnPreInit(NULL)
#9 /home2/sttitpi/framework_323/pradolite.php(7427): MainPageF->OnPreInit(NULL)
#10 /home2/sttitpi/framework_323/pradolite.php(7422): TPage->processNormalRequest(Object(THtmlWriter))
#11 /home2/sttitpi/framework_323/pradolite.php(9620): TPage->run(Object(THtmlWriter))
#12 /home2/sttitpi/framework_323/pradolite.php(9586): TPageService->runPage(Object(Home), Array)
#13 /home2/sttitpi/framework_323/pradolite.php(10767): TPageService->run()
#14 /home2/sttitpi/framework_323/pradolite.php(10298): TApplication->runService()
#15 /home2/sttitpi/pmb.sttindonesia.ac.id/index.php(6): TApplication->run()
#16 {main}
2020-10-23 12:05 Apache PRADO/3.2.3