wrap a function in a check
This commit is contained in:
parent
adab29eefd
commit
8e43095c9f
@ -174,6 +174,7 @@ class PluginWonderful {
|
||||
|
||||
function handle_action_save_widgets() {
|
||||
$new_boxes = array();
|
||||
if ($this->publisher_info !== false) {
|
||||
foreach ($this->publisher_info->adboxes as $box) {
|
||||
if (isset($_POST['pw']['center'][$box->adboxid])) {
|
||||
$this->adboxes_client->set_widget_centering($box->adboxid, true);
|
||||
@ -186,6 +187,7 @@ class PluginWonderful {
|
||||
}
|
||||
$this->publisher_info->adboxes = $new_boxes;
|
||||
}
|
||||
}
|
||||
|
||||
function handle_action_change_adbox_settings() {
|
||||
if ($member_id = get_option('plugin-wonderful-memberid')) {
|
||||
|
Loading…
Reference in New Issue
Block a user