Commit 36d40066 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Fix missing event

parent 9e07731c
......@@ -42,18 +42,22 @@ $id_topic = (int)$get['id_topic'];
$id = (int)$get['id'];
$page = (int)$get['p'];
$url = 'events.php';
if($id_topic>0) {
$url .= "?id_topic=$id_topic";
}
if ($id>0) {
include_once(SERVER_ROOT."/../classes/event.php");
$event = new Event();
$params = array();
$params['subtype'] = "event";
$params['ts'] = $event->EventGetTs($id);
echo $l->Output('events',$id,$id_topic,$page,$params);
} else {
$url = 'events.php';
if($id_topic>0) {
$url .= "?id_topic=$id_topic";
if($params['ts']>0) {
echo $l->Output('events',$id,$id_topic,$page,$params);
} else {
header("Location: $url");
}
} else {
header("Location: $url");
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment