Adding of network advert types partly finished, hard-coded table type fixed to dynamic
[mailer.git] / inc / db / lib-mysql3.php
index 14a4b6f..ab53b70 100644 (file)
@@ -74,8 +74,9 @@ function SQL_QUERY ($sqlString, $F, $L) {
        // Replace {PER}
        $sqlString = str_replace('{PER}', '%', $sqlString);
 
-       // Compile config out
-       $sqlString = FILTER_COMPILE_CONFIG($sqlString, true);
+       // Compile config entries out
+       $eval = "\$sqlString = \"".FILTER_COMPILE_CONFIG(escapeQuotes($sqlString))."\";";
+       eval($eval);
 
        // Starting time
        $querytimeBefore = microtime(true);