From 6bafc66f15bccce89d6b7ea82384084ec7684c73 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 10 Jun 2016 10:48:16 +0200 Subject: [PATCH] fix not being able to create new infolog entries after last commit --- infolog/inc/class.infolog_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 05678b0ff3..95eefafae2 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1903,7 +1903,7 @@ class infolog_ui $print = (int) $_REQUEST['print']; //echo "

infolog_ui::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'

\n"; - if (!($content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id ))) + if ($info_id && !($content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id ))) { Framework::window_close(lang('Permission denied!')); }