mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-11-04 23:02:16 +00:00
Prevent inactive profiles in album watermark rules
This commit is contained in:
1 parent
48133ccb86
commit
f3cea2cb32
1 file changed
+3
-2
@@ -38,9 +38,10 @@ function bratonien_tools_save_album_rule()
|
||||
|
||||
if ($mode === 'profile')
|
||||
{
|
||||
if ($profile === null || !bratonien_tools_get_watermark_profile($profile))
|
||||
$selected = $profile ? bratonien_tools_get_watermark_profile($profile) : null;
|
||||
if (!$selected || empty($selected['active']))
|
||||
{
|
||||
throw new RuntimeException('Bitte ein gueltiges Wasserzeichenprofil auswaehlen.');
|
||||
throw new RuntimeException('Bitte ein gueltiges aktives Wasserzeichenprofil auswaehlen.');
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user