From ae329c3046a87699eb9cc496d41c964668250e8e Mon Sep 17 00:00:00 2001 From: phildd Date: Thu, 26 Jul 2012 08:32:34 +0545 Subject: Allow dom_title width parameter to be null This prevents warning messages if called without the width parameter - reported in forum http://forum.pfsense.org/index.php/topic,51822.0.html The code already handles width being NULL or blank, it just needs to be explicitly defaulted when the parameter is not passed at all. --- etc/inc/functions.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/functions.inc b/etc/inc/functions.inc index a5fc964..c59d275 100644 --- a/etc/inc/functions.inc +++ b/etc/inc/functions.inc @@ -127,7 +127,7 @@ if(!function_exists("get_menu_messages")) { } if(!function_exists("dom_title")) { - function dom_title($title_msg,$width){ + function dom_title($title_msg,$width=NULL){ $width=preg_replace("/\D+/","",$width); if (!empty($width)){ $width=",'width',$width"; @@ -148,4 +148,4 @@ require_once("certs.inc"); require_once("system.inc"); require_once("vslb.inc"); -?> +?> \ No newline at end of file -- cgit v1.1