remove a warning

This commit is contained in:
Lars Kneschke 2006-02-08 18:30:20 +00:00
parent 95152c501e
commit 840029a8a7

View File

@ -174,6 +174,7 @@ class uitimesheet extends botimesheet
'js' => "<script>\n$js\n</script>\n", 'js' => "<script>\n$js\n</script>\n",
'ts_quantity_blur' => $this->data['ts_duration'] ? $this->data['ts_duration'] / 60.0 : '', 'ts_quantity_blur' => $this->data['ts_duration'] ? $this->data['ts_duration'] / 60.0 : '',
)); ));
$links = array();
if (!$this->data['ts_id'] && isset($_GET['link_app']) && isset($_GET['link_id']) && if (!$this->data['ts_id'] && isset($_GET['link_app']) && isset($_GET['link_id']) &&
preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i',$_GET['link_app'].':'.$_GET['link_id']) && // gard against XSS preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i',$_GET['link_app'].':'.$_GET['link_id']) && // gard against XSS
!is_array($content['link_to']['to_id'])) !is_array($content['link_to']['to_id']))