disable creating of new support-ticket if there are no customers

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-30 16:00:35 +00:00
parent db04ee9606
commit 0bf05d8bea
2 changed files with 11 additions and 1 deletions

View File

@@ -28,11 +28,16 @@ $header
<td class="field_display_border_left" colspan="10" style=" text-align: center; ">{$pagingcode}</td>
</tr>
</if>
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') >
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && $countcustomers !=0 >
<tr>
<td class="field_display_border_left" colspan="10"><a href="$filename?page=tickets&amp;action=new&amp;s=$s">{$lng['ticket']['ticket_new']}</a></td>
</tr>
</if>
<if $countcustomers == 0 >
<tr>
<td class="field_display_border_left" colspan="10"><a href="admin_customers.php?s=$s&amp;page=customers&amp;action=add">{$lng['admin']['domain_nocustomeraddingavailable']}</a></td>
</tr>
</if>
</table>
</form>
<br />