mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
LENGTH not compatible with ODBC
git-svn-id: file:///svn/phpbb/trunk@921 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e5753a1371
commit
cb2f931b42
1 changed files with 2 additions and 3 deletions
|
@ -781,9 +781,8 @@ function smilies_pass($message)
|
||||||
|
|
||||||
if(empty($smilies))
|
if(empty($smilies))
|
||||||
{
|
{
|
||||||
$sql = "SELECT code, smile_url, LENGTH(code) as length
|
$sql = "SELECT code, smile_url
|
||||||
FROM " . SMILIES_TABLE . "
|
FROM " . SMILIES_TABLE;
|
||||||
ORDER BY length DESC";
|
|
||||||
if($result = $db->sql_query($sql))
|
if($result = $db->sql_query($sql))
|
||||||
{
|
{
|
||||||
$smilies = $db->sql_fetchrowset($result);
|
$smilies = $db->sql_fetchrowset($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue