summaryrefslogtreecommitdiffstats
path: root/phpfspot.class.php
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-08 13:04:44 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-08 13:04:44 +0000
commit086cf84bfd20fcccdc978a0200ab97cdeca2c172 (patch)
tree289ece301f3a58c638d1efd1783c82566530b3bf /phpfspot.class.php
parent179073f20df0b8ad23acf777ef7925f7516b4b3e (diff)
issue35, if too many tags are selected and AND condition is used, this will show up a warning now
git-svn-id: file:///var/lib/svn/phpfspot/trunk@183 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.class.php')
-rw-r--r--phpfspot.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index f3944d1..32c2df7 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -371,6 +371,12 @@ class PHPFSPOT {
}
elseif($_SESSION['tag_condition'] == 'and') {
+ if(count($_SESSION['selected_tags']) >= 32) {
+ print "A SQLite limit of 32 tables within a JOIN SELECT avoids to<br />\n";
+ print "evaluate your tag selection. Please remove some tags from your selection.\n";
+ return Array();
+ }
+
/* Join together a table looking like
pt1.photo_id pt1.tag_id pt2.photo_id pt2.tag_id ...