mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-16 10:58:47 +01:00
fix error deleting links to files (they have negative ids!)
This commit is contained in:
parent
2834af46bc
commit
8e3cedbf08
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user