fix 0.html

This commit is contained in:
arlemp@selectel.ru
2023-10-17 10:49:29 +03:00
parent b7e3d819b9
commit 97f699157a
2 changed files with 3 additions and 3 deletions

View File

@@ -164,7 +164,7 @@
<type>datetime</type>
<view>
<table>True</table>
<form>False</form>
<form>True</form>
</view>
</item>
<item>

View File

@@ -1609,7 +1609,7 @@ $order = (isset($_GET['order'])) ? strip_tags(trim($_GET['order'])) : '';
/*onKeyUp = Len(this.id); onKeyDown = Len(this.id);*/
if (isset($item[$f]->longtextfile)) {
if (isset($item[$f]->longtextfile) AND $action == 'edit') { //только если редактирование
$htmlfile = set('site_fold').$item[$f]->longtextfile.'/'.$increment_value.'.html';
if (file_exists($htmlfile))
$text = file_get_contents($htmlfile);
@@ -2060,7 +2060,7 @@ $order = (isset($_GET['order'])) ? strip_tags(trim($_GET['order'])) : '';
$maxAllowedLength = 65535;
if (isset($item[$i]->longtextfile) and strlen($values) >= $maxAllowedLength ) {
if (isset($item[$i]->longtextfile) and strlen($values) >= $maxAllowedLength and $increment_value > 0) {
$htmlfile = set('site_fold').$item[$i]->longtextfile.'/'.$increment_value.'.html';