Set default prefix to wp_
authorDenis Chenu <courriel@shnoulle.net>
Fri, 4 Apr 2014 15:40:03 +0000 (17:40 +0200)
committerDenis Chenu <courriel@shnoulle.net>
Fri, 4 Apr 2014 15:40:03 +0000 (17:40 +0200)
If LimeSurvey and WordPress are on the same database , this work without configuration

AuthWPbyDB.php

index 66c94c1ea5cec70745657502d00b4356609e84ff..b02841e61522a9956176de3919d9680af181b9aa 100644 (file)
@@ -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)