From 5288fcb17ac21713a769221aaf783d8f7b4ee8e0 Mon Sep 17 00:00:00 2001 From: Bianka Martinovic Date: Fri, 15 Jun 2018 12:24:47 +0200 Subject: [PATCH] Update class.admin.php Fix: object $wb overriden by $admin if more than one $admin instance is created --- wbce/framework/class.admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wbce/framework/class.admin.php b/wbce/framework/class.admin.php index 018a9c4bf..b0e0d0cec 100644 --- a/wbce/framework/class.admin.php +++ b/wbce/framework/class.admin.php @@ -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