From e2a3f57293dbbefdbfed8fe9b2da221bb5813712 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 2 Dec 2016 10:58:22 +0100 Subject: [PATCH] Fix undefined notices in admin regexes pages --- Changelog | 2 ++ .../shared/templates/admin/collection_regexes-test.tpl | 2 +- .../templates/admin/release_naming_regexes-edit.tpl | 10 +++++----- .../templates/admin/release_naming_regexes-list.tpl | 6 +++--- .../templates/admin/release_naming_regexes-test.tpl | 4 ++-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Changelog b/Changelog index 633f9d1c0..058962b49 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2016-12-02 DariusIII + * Fix: Undefined notices in admin regexes pages 2016-11-30 DariusIII * Fix: Grouping of console releasescover view in Gamma theme * Fix: Settings table verification for PHP 5.6 users diff --git a/www/themes/shared/templates/admin/collection_regexes-test.tpl b/www/themes/shared/templates/admin/collection_regexes-test.tpl index 4c355dd79..127041bce 100644 --- a/www/themes/shared/templates/admin/collection_regexes-test.tpl +++ b/www/themes/shared/templates/admin/collection_regexes-test.tpl @@ -12,7 +12,7 @@
- {if $data} + {if isset($data)} {foreach from=$data key=hash item=collection} diff --git a/www/themes/shared/templates/admin/release_naming_regexes-edit.tpl b/www/themes/shared/templates/admin/release_naming_regexes-edit.tpl index be5c60c4e..237f392af 100644 --- a/www/themes/shared/templates/admin/release_naming_regexes-edit.tpl +++ b/www/themes/shared/templates/admin/release_naming_regexes-edit.tpl @@ -9,8 +9,8 @@
- - + +
Regex to match against a group or multiple groups.
Delimiters are already added, and PCRE_CASELESS is added after for case insensitivity.
> @@ -22,7 +22,7 @@
- +
The regex to use when trying to name a release using the usenet subject.
The regex delimiters are not added, you MUST add them. See this page.
@@ -38,7 +38,7 @@
- +
Description for this regex.
You can include an example usenet subject this regex would match on. @@ -48,7 +48,7 @@
- +
The order to run this regex in.
Must be a number, 0 or higher.
diff --git a/www/themes/shared/templates/admin/release_naming_regexes-list.tpl b/www/themes/shared/templates/admin/release_naming_regexes-list.tpl index bd87ddc22..b20f2e4b0 100644 --- a/www/themes/shared/templates/admin/release_naming_regexes-list.tpl +++ b/www/themes/shared/templates/admin/release_naming_regexes-list.tpl @@ -5,11 +5,11 @@
- +   
-{if $regex} +{if isset($regex)}
{$pager}
@@ -42,4 +42,4 @@
{$pager}
{/if} -
\ No newline at end of file + diff --git a/www/themes/shared/templates/admin/release_naming_regexes-test.tpl b/www/themes/shared/templates/admin/release_naming_regexes-test.tpl index 8912cbb81..643ab7fcd 100644 --- a/www/themes/shared/templates/admin/release_naming_regexes-test.tpl +++ b/www/themes/shared/templates/admin/release_naming_regexes-test.tpl @@ -16,7 +16,7 @@
-{if $data} +{if isset($data)} @@ -34,4 +34,4 @@ {/foreach}
Release id
{/if} - \ No newline at end of file +