Fix some IDE warning

This commit is contained in:
Hadi Nategh 2015-05-21 14:25:06 +00:00
parent 482f9f6c30
commit 809d066496
2 changed files with 34 additions and 31 deletions

View File

@ -262,7 +262,7 @@ abstract class bo_tracking
* *
* Need to be implemented in your extended tracking class! * Need to be implemented in your extended tracking class!
* *
* @param string $what possible values are: * @param string $name possible values are:
* - 'assigned' array of users to use instead of a field in the data * - 'assigned' array of users to use instead of a field in the data
* - 'copy' array of email addresses notifications should be copied too, can depend on $data * - 'copy' array of email addresses notifications should be copied too, can depend on $data
* - 'lang' string lang code for copy mail * - 'lang' string lang code for copy mail
@ -970,7 +970,7 @@ abstract class bo_tracking
if($this->get_config(self::CUSTOM_NOTIFICATION, $data, $old)) if($this->get_config(self::CUSTOM_NOTIFICATION, $data, $old))
{ {
$body = $this->get_custom_message($data,$old); $body = $this->get_custom_message($data,$old);
if($sig = $this->get_signature($data,$old,$receiver)) if(($sig = $this->get_signature($data,$old,$receiver)))
{ {
$body .= ($html_email ? '<br />':'') . "\n$sig"; $body .= ($html_email ? '<br />':'') . "\n$sig";
} }
@ -1007,7 +1007,7 @@ abstract class bo_tracking
{ {
$body .= "</table>\n"; $body .= "</table>\n";
} }
if($sig = $this->get_signature($data,$old,$receiver)) if(($sig = $this->get_signature($data,$old,$receiver)))
{ {
$body .= ($html_email ? '<br />':'') . "\n$sig"; $body .= ($html_email ? '<br />':'') . "\n$sig";
} }
@ -1120,6 +1120,9 @@ abstract class bo_tracking
/** /**
* Get a (global) signature to append to the change notificaiton * Get a (global) signature to append to the change notificaiton
* @param array $data
* @param type $old
* @param type $receiver
*/ */
protected function get_signature($data, $old, $receiver) protected function get_signature($data, $old, $receiver)
{ {

View File

@ -303,7 +303,7 @@ class infolog_tracking extends bo_tracking
/** /**
* Get a notification-config value * Get a notification-config value
* *
* @param string $what * @param string $name
* - 'copy' array of email addresses notifications should be copied too, can depend on $data * - 'copy' array of email addresses notifications should be copied too, can depend on $data
* - 'lang' string lang code for copy mail * - 'lang' string lang code for copy mail
* - 'sender' string send email address * - 'sender' string send email address