Commit a6407c2a authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#185124 by JirkaRybka: fix notices in taxonomy module displayed on 404 pages

parent 91e980a2
......@@ -1072,7 +1072,7 @@ function taxonomy_node_update_index(&$node) {
* or 'or') and a tid key containing an array of the term ids.
*/
function taxonomy_terms_parse_string($str_tids) {
$terms = array();
$terms = array('operator' => '', 'tids' => array());
if (preg_match('/^([0-9]+[+ ])+[0-9]+$/', $str_tids)) {
$terms['operator'] = 'or';
// The '+' character in a query string may be parsed as ' '.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment