From 58ecb4a2c9299c6fa45826942e00dec0d705aa50 Mon Sep 17 00:00:00 2001 From: botanic Date: Mon, 8 Sep 2014 02:05:49 -0700 Subject: [PATCH] Fix for stupid loop --- .hgignore | 3 +++ .../ams/plugins/Domain_Management/templates/index.tpl | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.hgignore b/.hgignore index 60b5b19be..16e7f1eef 100644 --- a/.hgignore +++ b/.hgignore @@ -257,3 +257,6 @@ code/web/public_php/db_version_tool code/web/public_php/db_version_web code/web/public_php/role_service code/web/public_php/role_support +code/web/public_php/role_domain +code/web/public_php/db_version_ring +code/web/public_php/config_user.php diff --git a/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl b/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl index 489364097..0f7e208ac 100644 --- a/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl +++ b/code/web/private_php/ams/plugins/Domain_Management/templates/index.tpl @@ -194,7 +194,8 @@ - {foreach from=$hook_info['Domain_Management']['domains'] item=array} + {if isset($hook_info['Domain_Management']['domains'][0])} + {foreach from=$hook_info['Domain_Management']['domains'] item=array} {$array['domain_id']} {$array['domain_name']} @@ -202,7 +203,8 @@ {$array['patch_version']} {$array['description']|truncate} - {/foreach} + {/foreach} + {/if} {/if}