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 3b49d75ca7
commit 9cb30f59db

View File

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