From c96097529e49943eddba78d70e23e38c0eac494d Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 29 Nov 2009 12:35:19 +0000 Subject: Feature_1255 : - single quotes in queries - start using $conf['dblayer'] git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee --- random.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'random.php') diff --git a/random.php b/random.php index f1adfada5..47d3506a4 100644 --- a/random.php +++ b/random.php @@ -38,7 +38,7 @@ check_status(ACCESS_GUEST); // +-----------------------------------------------------------------------+ $query = ' -SELECT DISTINCT(id) +SELECT id FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id '.get_sql_condition_FandF -- cgit v1.2.3