Explorar el Código

Adding one more exception to the database::query in order to avoid the "dev error msg"

Julio Montoya hace 12 años
padre
commit
d497f37a2d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      main/inc/lib/database.lib.php

+ 2 - 0
main/inc/lib/database.lib.php

@@ -683,6 +683,8 @@ class Database {
         if (strpos($query, 'c_')) {      	
         	//Check if the table contains inner joins 
         	if (
+                    
+                strpos($query, 'allow_public_certificates') === false &&
                 strpos($query, 'DROP TABLE IF EXISTS') === false &&      
                 strpos($query, 'thematic_advance') === false &&  
                 strpos($query, 'thematic_plan') === false &&