summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pocock2015-07-17 18:51:45 (GMT)
committerDaniel Pocock2015-07-17 18:51:45 (GMT)
commitf6ad1abbcc24152e044cb73097894b787cc72bc1 (patch)
treedbd268371b4fe167738d31f9a45836df96e95bdc
parent01d6d6d46f258b1962527d94100a7240d5d755c1 (diff)
Ensure extra_value is not undefinedHEAD7.x-2.x
-rw-r--r--drucall.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/drucall.module b/drucall.module
index 683bbe7..14bc773 100644
--- a/drucall.module
+++ b/drucall.module
@@ -96,6 +96,8 @@ function drucall_call() {
$ws_cookie_secret = variable_get('ws_cookie_secret');
$websocket_server_url = variable_get('websocket_server_url');
$ws_cookies_in_url = variable_get('ws_cookies_in_url');
+ $extra_value = ''; // TODO - a shopping cart ID,
+ // order ID, customer ID or some other value
if(!empty($ws_cookie_secret)) {
$ws_cookie_timeout = variable_get('ws_cookie_timeout'); // seconds
$sip_from = explode(':', $caller_uri)[1];
@@ -109,8 +111,6 @@ function drucall_call() {
$time_limit = REQUEST_TIME + $ws_cookie_timeout; // seconds
$cookie_value = '1:' . REQUEST_TIME . ':' . $time_limit . ':' . $sip_from . ':' . $sip_to;
$cookie_value_encoded = urlencode($cookie_value);
- $extra_value = ''; // TODO - a shopping cart ID,
- // order ID, customer ID or some other value
// Example sending the Drupal session ID through SIP
if(!empty($user->ssid))
$extra_value = 'drupal:ssid:' . $user->ssid;