fix error deleting links to files (they have negative ids!)

This commit is contained in:
ralf 2022-10-17 12:11:59 +02:00
parent 2834af46bc
commit 8e3cedbf08

View File

@ -318,7 +318,7 @@ class Link extends Etemplate\Widget
*/ */
public static function ajax_delete(int $value) public static function ajax_delete(int $value)
{ {
if ($value <= 0) if (!$value)
{ {
throw new InvalidArgumentException(); throw new InvalidArgumentException();
} }