Incorrect function call corrected.
authorLaury GvR <laury@gaslightmedia.com>
Tue, 4 Oct 2016 18:01:32 +0000 (14:01 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 4 Oct 2016 18:01:32 +0000 (14:01 -0400)
classes/data/dataMemberInfo.php
index.php

index 5cc6d5e..36254a1 100644 (file)
@@ -510,7 +510,9 @@ class GlmDataMemberInfo extends GlmDataAbstract
          * This will add a protocol prefix to the live cam url
          */
         $liveCamUrl = $r['live_cam_url'];
-        $r['live_cam_url'] = addUrlProtocol($liveCamUrl);
+        if (!preg_match("~^(?:f|ht)tps?://~i", $liveCamUrl)) {
+            $r['live_cam_url'] = "http://" . $liveCamUrl;
+        }
 
         $formattedStr = trim(preg_replace('/\s\s+/', ' ', $r['short_descr']));
         $r['short_descr'] = substr($formattedStr, 0, 120).$dotdotdot;
index 39eb751..1c14df0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 2.6.4
+ * Version: 2.6.5
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabase
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.6.4
+ * @version 2.6.5
  */
 
 /*
@@ -38,7 +38,7 @@
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.4');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.5');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.19');
 
 // Check if plugin version is not current in WordPress option and if needed updated it