From 0274dd12be136ee43c63494e8014c327a5cd0098 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 5 Feb 2005 10:22:25 +0000 Subject: [PATCH] fixed creation of infolog without any link (contained link with id=1 on HEAD) --- infolog/inc/class.uiinfolog.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 429cd7894f..2956b4e3d4 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -280,7 +280,7 @@ return $this->tmpl->exec('infolog.uiinfolog.index',$values,array( 'info_type' => $this->bo->enums['type'], 'info_status' => $all_stati - ),$readonlys,$persist,'',$return_html); + ),$readonlys,$persist,(int) $return_html); } function delete($values=0,$referer='') @@ -502,8 +502,7 @@ } break; } - $content['link_to']['primary'] = $content['info_link_id'] ? $content['info_link_id'] : True; - + $content['link_to']['primary'] = (int)$content['info_link_id']; if (!isset($this->bo->enums['type'][$content['info_type']])) { $content['info_type'] = 'note';