forked from extern/egroupware
* import/export: fix for failed export on not set limit for nonadmins on standard export (handle empty export_limit since it will be casted to 0 on (int))
This commit is contained in:
parent
a11673dc8f
commit
1621485da9
@ -1477,7 +1477,7 @@ class nextmatch_widget
|
||||
{
|
||||
break; // nothing to export
|
||||
}
|
||||
if (!$exportLimitExempted && (!bo_merge::hasExportLimit($export_limit,'ISALLOWED') || (int)$export_limit < $total))
|
||||
if (!$exportLimitExempted && (!bo_merge::hasExportLimit($export_limit,'ISALLOWED') || (bo_merge::hasExportLimit($export_limit) && (int)$export_limit < $total)))
|
||||
{
|
||||
etemplate::set_validation_error($name,lang('You are not allowed to export more than %1 entries!',(int)$export_limit));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user