From: Reini U. <ru...@us...> - 2004-03-09 12:29:06
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29789 Modified Files: WikiGroup.php Log Message: prevent from undefined DBAuthParams warning Index: WikiGroup.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiGroup.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -2 -b -p -d -r1.14 -r1.15 --- WikiGroup.php 8 Mar 2004 19:30:01 -0000 1.14 +++ WikiGroup.php 9 Mar 2004 12:11:57 -0000 1.15 @@ -192,5 +192,5 @@ class WikiGroup{ /* WikiDB users from prefs (not from users): */ $dbi = _PassUser::getAuthDbh(); - if ($dbi and $GLOBALS['DBAuthParams']['pref_select']) { + if ($dbi and !empty($GLOBALS['DBAuthParams']['pref_select'])) { //get prefs table $sql = str_replace(' prefs ',' userid ',$GLOBALS['DBAuthParams']['pref_select']); @@ -205,5 +205,5 @@ class WikiGroup{ /* WikiDB users from users: */ - if ($dbi and $GLOBALS['DBAuthParams']['auth_user_exists']) { + if ($dbi and !empty($GLOBALS['DBAuthParams']['auth_user_exists'])) { $sql = preg_replace('/WHERE.*/i','',$GLOBALS['DBAuthParams']['auth_user_exists']); if ($GLOBALS['DBParams']['dbtype'] == 'ADODB') { @@ -848,4 +848,7 @@ class GroupLdap extends WikiGroup { // $Log$ +// Revision 1.15 2004/03/09 12:11:57 rurban +// prevent from undefined DBAuthParams warning +// // Revision 1.14 2004/03/08 19:30:01 rurban // fixed Theme->getButtonURL |