[Fusionforge-commits] r10899 - trunk/src/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Oct 8 16:26:30 CEST 2010


Author: lolando
Date: 2010-10-08 16:26:30 +0200 (Fri, 08 Oct 2010)
New Revision: 10899

Modified:
   trunk/src/common/include/database-pgsql.php
Log:
Handle one more corner case

Modified: trunk/src/common/include/database-pgsql.php
===================================================================
--- trunk/src/common/include/database-pgsql.php	2010-10-08 14:22:22 UTC (rev 10898)
+++ trunk/src/common/include/database-pgsql.php	2010-10-08 14:26:30 UTC (rev 10899)
@@ -109,6 +109,7 @@
 function db_switcher(&$dbserver=NULL) {
 	switch ($dbserver) {
 	case NULL:
+	case 'SYS_DB_PRIMARY':
 		$dbserver = SYS_DB_PRIMARY ;
 		break ;
 	case 'SYS_DB_STATS':
@@ -120,6 +121,8 @@
 	case 'SYS_DB_SEARCH':
 		$dbserver = SYS_DB_SEARCH ;
 		break ;
+	default:
+		$dbserver = SYS_DB_PRIMARY ;
 	}
 }	
 




More information about the Fusionforge-commits mailing list