Silence the warning if this is not initialised.

This commit is contained in:
Andrew McMillan committed 2012-03-12 13:00:41 +13:00
1 parent ff006ce319
commit a6d6dfc8b8
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ function SRVOk ( $value, $name, $row ) {
function SRVFormat ( $domain ) {
global $c;
switch ( $_REQUEST['srv_format'] )
switch ( @$_REQUEST['srv_format'] )
{
case 'dnsmasq':
return 'srv_host=_ischedules._tcp.' . $domain .','. ($c->scheduling_dkim_domain?$c->scheduling_dkim_domain:$_SERVER['SERVER_NAME']) .','. $_SERVER['SERVER_PORT'] ;