From: <mo...@us...> - 2004-02-10 16:07:14
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16810 Modified Files: tiki-view_tracker_item.php Log Message: fixed an error that can occur Index: tiki-view_tracker_item.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-view_tracker_item.php,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- tiki-view_tracker_item.php 10 Feb 2004 10:57:38 -0000 1.46 +++ tiki-view_tracker_item.php 10 Feb 2004 16:03:44 -0000 1.47 @@ -56,8 +56,10 @@ $tracker_info = $trklib->get_tracker($_REQUEST["trackerId"]); $tracker_info = array_merge($tracker_info,$trklib->get_tracker_options($_REQUEST["trackerId"])); $smarty->assign('tracker_info', $tracker_info); +if (!isset($tracker_info["writerCanModify"])) $tracker_info["writerCanModify"] = 'n'; +if (!isset($tracker_info["writerGroupCanModify"])) $tracker_info["writerGroupCanModify"] = 'n'; -if ($tiki_p_view_trackers != 'y' and ($tracker_info["writerCanModify"] != 'y') and ($tracker_info["writerGroupCanModify"] != 'y')) { +if ($tiki_p_view_trackers != 'y' and $tracker_info["writerCanModify"] != 'y' and $tracker_info["writerGroupCanModify"] != 'y') { $smarty->assign('msg', tra("You dont have permission to use this feature")); $smarty->display("error.tpl"); die; |