Julio Montoya 12 years ago
parent
commit
a87b647bf8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/database.lib.php

+ 1 - 1
main/inc/lib/database.lib.php

@@ -681,7 +681,7 @@ class Database {
         //@todo remove this before the stable release
         
         //Check if the table contains a c_ (means a course id)
-        if (strpos($query, 'c_')) {	
+        if (api_get_setting('server_type')==='test' && strpos($query, 'c_')) {
         	//Check if the table contains inner joins 
         	if (     
                 strpos($query, 'assoc_handle') === false &&