Skip to content

Commit

Permalink
dbquote
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Dec 1, 2019
1 parent 2c59072 commit 81f786a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ public static function getDefaultHomeModule()
->where(
[
$db->quoteName('home') . ' = ' . $db->quote('1'),
$db->quoteName('published') . ' = ' . $db->quote('1'),
$db->quoteName('client_id') . ' = ' . $db->quote('0'),
$db->quoteName('published') . ' = 1',
$db->quoteName('client_id') . ' = 0',
$db->quoteName('language') . ' = ' . $db->quote('*'),
]
);
Expand All @@ -250,8 +250,8 @@ public static function getDefaultHomeModule()
->where(
[
$db->quoteName('module') . ' = ' . $db->quote('mod_menu'),
$db->quoteName('published') . ' = ' . $db->quote('1'),
$db->quoteName('client_id') . ' = ' . $db->quote('0'),
$db->quoteName('published') . ' = 1',
$db->quoteName('client_id') . ' = 0',
]
);

Expand Down Expand Up @@ -295,8 +295,8 @@ public static function getModule($moduleName, $instanceTitle = null)
->where(
[
$db->quoteName('module') . ' = ' . $db->quote($moduleName),
$db->quoteName('published') . ' = ' . $db->quote('1'),
$db->quoteName('client_id') . ' = ' . $db->quote('0'),
$db->quoteName('published') . ' = 1',
$db->quoteName('client_id') . ' = 0',
]
);

Expand Down

0 comments on commit 81f786a

Please sign in to comment.