projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a63b40c
)
Improved phrasing when there is only 1 member with an iframe
author
laury
<laury@gaslightmedia.com>
Wed, 20 Jul 2016 13:36:45 +0000
(09:36 -0400)
committer
laury
<laury@gaslightmedia.com>
Wed, 20 Jul 2016 13:36:45 +0000
(09:36 -0400)
models/admin/management/videos.php
patch
|
blob
|
history
diff --git
a/models/admin/management/videos.php
b/models/admin/management/videos.php
index
e6eb1f6
..
bac41a8
100644
(file)
--- a/
models/admin/management/videos.php
+++ b/
models/admin/management/videos.php
@@
-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;