From e7f52e2ac206333ba5fc79bc2ecd3a8b79d3bf96 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 4 Apr 2014 17:40:03 +0200 Subject: [PATCH] Set default prefix to wp_ If LimeSurvey and WordPress are on the same database , this work without configuration --- AuthWPbyDB.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AuthWPbyDB.php b/AuthWPbyDB.php index 66c94c1..b02841e 100644 --- a/AuthWPbyDB.php +++ b/AuthWPbyDB.php @@ -249,6 +249,9 @@ class AuthWPbyDB extends AuthPluginBase $sWpDbUser = $this->get('authwp_dbuser'); $sWpDbPassword = $this->get('authwp_dbpassword'); $sWpDbPrefix = $this->get('authwp_dbprefix'); + if(is_null($sWpDbPrefix)){ + $sWpDbPrefix='wp_'; + } $sWpDbCharset = "utf8"; if($sWpDbHost || $sWpDbPort || $sWpDbName){ if(!$sWpDbPort) -- 2.30.2