From cb2f931b422795174c468c90cb1db662d51fc763 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 23 Aug 2001 15:11:11 +0000 Subject: [PATCH] LENGTH not compatible with ODBC git-svn-id: file:///svn/phpbb/trunk@921 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index abe592a100..ce2160437b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -781,9 +781,8 @@ function smilies_pass($message) if(empty($smilies)) { - $sql = "SELECT code, smile_url, LENGTH(code) as length - FROM " . SMILIES_TABLE . " - ORDER BY length DESC"; + $sql = "SELECT code, smile_url + FROM " . SMILIES_TABLE; if($result = $db->sql_query($sql)) { $smilies = $db->sql_fetchrowset($result);