projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179073f
)
issue35, if too many tags are selected and AND condition is used, this will show...
author
Andreas Unterkircher
<unki@netshadow.at>
Sun, 8 Jul 2007 13:04:44 +0000
(13:04 +0000)
committer
Andreas Unterkircher
<unki@netshadow.at>
Sun, 8 Jul 2007 13:04:44 +0000
(13:04 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@183
fa6a889d
-dae6-447d-9e79-
4ba9a3039384
phpfspot.class.php
patch
|
blob
|
history
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index f3944d1575ccbc231a38019a8494e7c63c94e69d..32c2df71cd647ec1fd3f1e6ef4c8f30eae234aba 100644
(file)
--- 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 ...