- 论坛徽章:
- 0
|
apache解析php脚本的时候报如下错误
[Wed Jun 18 11:11:51.638789 2014] [:error] [pid 9050:tid 47991284955456] [client 10.28.7.110:52358] PHP Notice: Undefined offset: 0 in /usr/local/apache2/htdocs/cacti/plugins/npc/controllers/nagios.php on line 105, referer: http://10.28.6.242/cacti/plugins ... p;action=drawLayout
[Wed Jun 18 11:11:51.650285 2014] [:error] [pid 9050:tid 47991284955456] [client 10.28.7.110:52358] PHP Notice: Undefined offset: 0 in /usr/local/apache2/htdocs/cacti/plugins/npc/controllers/nagios.php on line 111, referer: http://10.28.6.242/cacti/plugins ... p;action=drawLayout
查看该脚本中的内容,请问这个脚本有什么问题?
105 ->where('p.instance_id = ?', $results[0]['instance_id'])
106 ->groupby('p.program_version');
107
108 $version = $q->execute(array(), Doctrine::HYDRATE_ARRAY);
109
110 $results[0]['server_time'] = date('Y-m-d H:i:s');
111 $results[0]['program_version'] = $version[0]['program_version'];
|
|