diff --git a/main/inc/lib/database.lib.php b/main/inc/lib/database.lib.php index 6735d635a4..a7755ee6f7 100644 --- a/main/inc/lib/database.lib.php +++ b/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 &&