Skip to content
Browse files

PHP Warning fix.

  • Loading branch information...
1 parent b22aeff commit d1cd0a36ec97a4cb2a21c6effb0ef84e1c0be327 @mvied committed Dec 17, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 admin/templates/metabox/network.php
  2. +1 −1 lib/WordPressHTTPS.php
  3. +1 −1 uninstall.php
View
2 admin/templates/metabox/network.php
@@ -17,7 +17,7 @@
<tbody>
<?php
global $wpdb;
- $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs));
+ $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs, NULL));
foreach($blogs as $blog_id) {
$ssl_host = ($this->getPlugin()->getSetting('ssl_host', $blog_id) != '' ? $this->getPlugin()->getSetting('ssl_host', $blog_id) : get_site_url($blog_id, '', 'https'));
$ssl_host = preg_replace('/http[s]?:\/\//', '', $ssl_host);
View
2 lib/WordPressHTTPS.php
@@ -152,7 +152,7 @@ public function install() {
global $wpdb;
if ( is_multisite() && is_network_admin() ) {
- $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs));
+ $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs, NULL));
} else {
$blogs = array($wpdb->blogid);
}
View
2 uninstall.php
@@ -28,7 +28,7 @@
global $wpdb;
if ( is_multisite() && is_network_admin() ) {
- $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs));
+ $blogs = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM " . $wpdb->blogs, NULL));
} else {
$blogs = array($wpdb->blogid);
}

0 comments on commit d1cd0a3

Please sign in to comment.
Something went wrong with that request. Please try again.