From: Denis Chenu Date: Fri, 4 Apr 2014 15:40:03 +0000 (+0200) Subject: Set default prefix to wp_ X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=e7f52e2ac206333ba5fc79bc2ecd3a8b79d3bf96;p=limesurvey%2FAuthWMESbyDB Set default prefix to wp_ If LimeSurvey and WordPress are on the same database , this work without configuration --- 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)