Hide c_id field warning if using production server

skala
Yannick Warnier 12 years ago
parent c7f4d241a5
commit 2b12758274
  1. 2
      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 &&

Loading…
Cancel
Save