Always filled in http on livecam submission, even when empty
authorLaury GvR <laury@gaslightmedia.com>
Tue, 4 Oct 2016 18:06:15 +0000 (14:06 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 4 Oct 2016 18:06:15 +0000 (14:06 -0400)
classes/data/dataMemberInfo.php
index.php

index 36254a1..523a695 100644 (file)
@@ -510,8 +510,10 @@ class GlmDataMemberInfo extends GlmDataAbstract
          * This will add a protocol prefix to the live cam url
          */
         $liveCamUrl = $r['live_cam_url'];
-        if (!preg_match("~^(?:f|ht)tps?://~i", $liveCamUrl)) {
-            $r['live_cam_url'] = "http://" . $liveCamUrl;
+        if ($liveCamUrl != "") {
+            if (!preg_match("~^(?:f|ht)tps?://~i", $liveCamUrl)) {
+                $r['live_cam_url'] = "http://" . $liveCamUrl;
+            }
         }
 
         $formattedStr = trim(preg_replace('/\s\s+/', ' ', $r['short_descr']));
index 1c14df0..5f50b18 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.5
+ * Version: 2.6.6
  * 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.5
+ * @version 2.6.6
  */
 
 /*
@@ -38,7 +38,7 @@
  *
  */
 
-define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.5');
+define('GLM_MEMBERS_PLUGIN_VERSION', '2.6.6');
 define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.19');
 
 // Check if plugin version is not current in WordPress option and if needed updated it