Skip to content

Commit

Permalink
Update class.admin.php
Browse files Browse the repository at this point in the history
Fix: object $wb overriden by $admin if more than one $admin instance is created
  • Loading branch information
webbird authored Jun 15, 2018
1 parent 49d615d commit 5288fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wbce/framework/class.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct($section_name = '##skip##', $section_permission = 's

// i know this sucks but some old stuff really need this
global $wb;
$wb = $this;
if(!is_object($wb)) $wb = $this;
}

// Print the admin header
Expand Down

0 comments on commit 5288fcb

Please sign in to comment.