Stop fatal error about missing argument 2 to textbox

This commit is contained in:
Nathan Gray 2013-11-04 18:57:42 +00:00
parent 07ff17704f
commit 5b7f804877

View File

@ -21,12 +21,12 @@ class etemplate_widget_historylog extends etemplate_widget
{ {
/** /**
* Fill type options in self::$request->sel_options to be used on the client * Fill type options in self::$request->sel_options to be used on the client
* *
* @param string $cname * @param string $cname
*/ */
public function beforeSendToClient($cname) public function beforeSendToClient($cname)
{ {
$form_name = self::form_name($cname, $this->id); $form_name = self::form_name($cname, $this->id);
if(is_array(self::$request->content[$form_name]['status-widgets'])) if(is_array(self::$request->content[$form_name]['status-widgets']))
@ -43,7 +43,7 @@ class etemplate_widget_historylog extends etemplate_widget
if(method_exists($widget, 'beforeSendToClient')) if(method_exists($widget, 'beforeSendToClient'))
{ {
$widget->beforeSendToClient($cname); $widget->beforeSendToClient($cname,array());
} }
} }
else else