diff --git a/conlite/includes/include.con_edit_form.php b/conlite/includes/include.con_edit_form.php index 13fb349..e9fdc07 100644 --- a/conlite/includes/include.con_edit_form.php +++ b/conlite/includes/include.con_edit_form.php @@ -103,7 +103,7 @@ if ($action == "con_newart" && $newart != true) { $idtplinput = $db->f("idtplinput"); - if ($tmp_modifiedby == "") { + if (empty($tmp_modifiedby)) { $tmp_modifiedby = $tmp_author; } @@ -142,7 +142,7 @@ if ($action == "con_newart" && $newart != true) { $tmp_idartlang = 0; $tmp_idlang = $lang; - $tmp_page_title = stripslashes($db->f("pagetitle")); + $tmp_page_title = (empty($db->f("pagetitle")))?'':stripslashes($db->f("pagetitle")); $tmp_title = ""; $tmp_urlname = ""; // plugin Advanced Mod Rewrite - edit by stese $tmp_artspec = ""; @@ -152,6 +152,7 @@ if ($action == "con_newart" && $newart != true) { $tmp_published = date("Y-m-d H:i:s"); $tmp_publishedby = ""; $tmp_author = ""; + $tmp_modifiedby = ""; $tmp_online = "0"; $tmp_datestart = "0000-00-00 00:00:00"; $tmp_dateend = "0000-00-00 00:00:00"; @@ -713,5 +714,4 @@ if ($action == "con_newart" && $newart != true) { to see this form */ $notification->displayNotification("error", i18n("Permission denied")); } -} -?> +} \ No newline at end of file diff --git a/conlite/templates/standard/template.con_edit_form.html b/conlite/templates/standard/template.con_edit_form.html index 0076951..6155f23 100644 --- a/conlite/templates/standard/template.con_edit_form.html +++ b/conlite/templates/standard/template.con_edit_form.html @@ -1,3 +1,4 @@ + @@ -220,9 +221,7 @@ parent.parent.frames["right"].frames["right_top"].sub.clicked(menuItem.firstChild); } - { - DATAPUSH - } + {DATAPUSH}