diff --git a/infolog/edit.php b/infolog/edit.php
index a73e4a55e9..ec95abd17f 100644
--- a/infolog/edit.php
+++ b/infolog/edit.php
@@ -29,7 +29,7 @@
$phpgw->infolog = createobject('infolog.infolog');
- if ($submit) {
+ if ($save || $add) {
if (strlen($des) >= 8000) {
$error[] = lang('Description can not exceed 8000 characters in length');
}
@@ -249,7 +249,7 @@
$t->set_var('delete_action',$phpgw->link('/infolog/delete.php'));
- $t->set_var('edit_button','');
+ $t->set_var('edit_button','');
if (!$action && $phpgw->infolog->check_access($info_id,PHPGW_ACL_DELETE)) {
$t->set_var('delete_button','');