Improved phrasing when there is only 1 member with an iframe
authorlaury <laury@gaslightmedia.com>
Wed, 20 Jul 2016 13:36:45 +0000 (09:36 -0400)
committerlaury <laury@gaslightmedia.com>
Wed, 20 Jul 2016 13:36:45 +0000 (09:36 -0400)
models/admin/management/videos.php

index e6eb1f6..bac41a8 100644 (file)
@@ -164,6 +164,9 @@ class GlmMembersAdmin_management_videos
              WHERE descr like '%youtube.com/embed%'
             ORDER BY id";
             $count = $this->wpdb->get_var( $sql );
+            if ($count == 1) {
+                $resultMessage = "There is 1 Member with embedded youtube code in their descr field.";
+            }
             //echo '<pre>$count: ' . print_r($count, true) . '</pre>';
             $resultMessage = "There are {$count} Members with embedded youtube code in their descr field.";
             break;