Skip to content

Commit

Permalink
fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Apr 4, 2023
1 parent dedf753 commit 3db0725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions classes/erlhcoreclasstelegramvalidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ public static function validateDepartments(erLhcoreClassModelTelegramBot & $item
$botDep->saveThis();
}
}

return [];
}

public static function validateOperator(erLhcoreClassModelTelegramOperator & $item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

<div class="form-group">
<label>Signature</label>
<textarea name="signature" rows="5" class="form-control"><?php echo htmlspecialchars(preg_replace("[\n]","\n\r",$newSignature->signature,1))?></textarea>
<textarea name="signature" rows="5" class="form-control"><?php echo htmlspecialchars(preg_replace("[\n]","\n\r",(string)$newSignature->signature,1))?></textarea>
</div>

<input type="submit" class="btn btn-secondary" name="SaveAction" value="Save">
Expand Down

0 comments on commit 3db0725

Please sign in to comment.