From 3db876e775c0651ffdf15234f5d5c7a4eae4033c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 19 Feb 2009 23:55:34 +0000 Subject: [PATCH] Fix for broken SQL queries (all). Resolves #84 --- inc/db/lib-mysql3.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 0767c5f162..90db1da0b7 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -50,6 +50,9 @@ function SQL_QUERY ($sql_string, $F, $L) { // Starting time $querytimeBefore = array_sum(explode(' ', microtime())); + // Replace {!_MYSQL_PREFIX!} with constant, closes #84. Thanks to profi-concept + $sql_string = str_replace("{!_MYSQL_PREFIX!}", constant('_MYSQL_PREFIX'), $sql_string); + // Run SQL command //* DEBUG: */ echo $sql_string."
\n"; $result = mysql_query($sql_string, $link) -- 2.39.5