fix could not create new entries

This commit is contained in:
Ralf Becker 2016-06-21 09:25:37 +02:00
parent eae2b52f79
commit 6085e9fb67

View File

@ -1903,7 +1903,7 @@ class infolog_ui
$print = (int) $_REQUEST['print'];
//echo "<p>infolog_ui::edit: info_id=$info_id, action='$action', action_id='$action_id', type='$type', referer='$referer'</p>\n";
if ($info_id && !($content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id )))
if (($content = $this->bo->read( $info_id || $action != 'sp' ? $info_id : $action_id )) === false)
{
Framework::window_close(lang('Permission denied!'));
}