diff --git a/classes/PluginWonderful.php b/classes/PluginWonderful.php
index 82953e0..569c904 100644
--- a/classes/PluginWonderful.php
+++ b/classes/PluginWonderful.php
@@ -103,16 +103,18 @@ class PluginWonderful {
}
function render_widget_control($adboxid) {
- foreach ($this->publisher_info->adboxes as $box) {
- if ($box->adboxid == $adboxid) {
- echo '';
- echo '';
- break;
- }
- }
+ if ($this->publisher_info !== false) {
+ foreach ($this->publisher_info->adboxes as $box) {
+ if ($box->adboxid == $adboxid) {
+ echo '';
+ echo '';
+ break;
+ }
+ }
+ }
}
function handle_activation() {