diff options
author | phildd <ict.advisor@nepal.inf.org> | 2012-07-26 08:32:34 +0545 |
---|---|---|
committer | phildd <ict.advisor@nepal.inf.org> | 2012-07-26 08:32:34 +0545 |
commit | ae329c3046a87699eb9cc496d41c964668250e8e (patch) | |
tree | 4cc17c33554aa3ed668511608c7aa06097cb016e /etc | |
parent | be27f33714ed7ade8296bb2d1678e10bee8429fa (diff) | |
download | pfsense-ae329c3046a87699eb9cc496d41c964668250e8e.zip pfsense-ae329c3046a87699eb9cc496d41c964668250e8e.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/functions.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |