aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_search.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-04-06 20:04:42 +0000
committerrvelices <rv-github@modusoptimus.com>2010-04-06 20:04:42 +0000
commit4e4f257a58d1369ed506461a42522f79bc532476 (patch)
tree98aeaac3d733ccd87b9834c71b7b8fb3b2f1317e /include/functions_search.inc.php
parentf8293effea23332e906173986a1902e224393f00 (diff)
fixes only:
- some searches returned bad array for page['items'] (resulting in php warnings and sometimes mysql fatal error) still existing in branch 2.0 - mysql fatal error in admin maintenance - php warn in plugins_list.php - fix check on function param in admin/include/functions.php git-svn-id: http://piwigo.org/svn/trunk@5691 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_search.inc.php')
-rw-r--r--include/functions_search.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php
index ad9c5699b..8f6af51dd 100644
--- a/include/functions_search.inc.php
+++ b/include/functions_search.inc.php
@@ -252,7 +252,7 @@ SELECT DISTINCT(id)
}
else
{
- $items = array_intersect($items, $tag_items);
+ $items = array_values( array_intersect($items, $tag_items) );
}
break;
case 'OR':