Skip to content

Commit

Permalink
Add missing ` in SQL queries
Browse files Browse the repository at this point in the history
...which cause trouble on mysql 8.x
  • Loading branch information
Colinax committed Apr 10, 2021
1 parent 731bbab commit 3fcd9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wbce/framework/initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
// You can log users in or out and do what you like
// Initialize Modules normaly do not distinguish between FE and BE

$sSql = "SELECT `directory` FROM `{TP}addons` WHERE function LIKE '%initialize%'";
$sSql = "SELECT `directory` FROM `{TP}addons` WHERE `function` LIKE '%initialize%'";
if (($resSnippets = $database->query($sSql))) {
while ($rec = $resSnippets->fetchRow()) {
$sFile = WB_PATH . '/modules/' . $rec['directory'] . '/initialize.php';
Expand Down

0 comments on commit 3fcd9c0

Please sign in to comment.