From b55bd74125fdef25b7722620457e466c50efaa60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 11 Dec 2013 14:09:46 +0100 Subject: [PATCH] Fix countSmileyCategories in vB --- files/lib/system/exporter/VB3or4xExporter.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index d54ae0b..9b408ae 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -1288,8 +1288,7 @@ class VB3or4xExporter extends AbstractExporter { public function countSmileyCategories() { $sql = "SELECT COUNT(*) AS count FROM ".$this->databasePrefix."imagecategory - WHERE imagetype = ? - ORDER BY imagecategoryid ASC"; + WHERE imagetype = ?"; $statement = $this->database->prepareStatement($sql); $statement->execute(array(3)); $row = $statement->fetchArray(); -- 2.20.1