mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
fix error deleting links to files (they have negative ids!)
This commit is contained in:
parent
3b49d75ca7
commit
9cb30f59db
@ -320,7 +320,7 @@ class Link extends Etemplate\Widget
|
||||
*/
|
||||
public static function ajax_delete(int $value)
|
||||
{
|
||||
if ($value <= 0)
|
||||
if (!$value)
|
||||
{
|
||||
throw new InvalidArgumentException();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user